Skip to content

Commit 67dc71c

Browse files
diandersbroonie
authored andcommitted
regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 5.4 and 5.10
This follows on the change ("regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers that existed in 4.14") but changes regulators didn't exist in Linux 5.4 but did exist in Linux 5.10. Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://lore.kernel.org/r/20230316125351.4.I01f21c98901641a009890590ddc1354c0f294e5e@changeid Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d3b81d9 commit 67dc71c

18 files changed

Lines changed: 19 additions & 1 deletion

drivers/regulator/bd71828-regulator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,8 @@ static int bd71828_probe(struct platform_device *pdev)
771771

772772
static struct platform_driver bd71828_regulator = {
773773
.driver = {
774-
.name = "bd71828-pmic"
774+
.name = "bd71828-pmic",
775+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
775776
},
776777
.probe = bd71828_probe,
777778
};

drivers/regulator/bd9576-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,7 @@ MODULE_DEVICE_TABLE(platform, bd957x_pmic_id);
11261126
static struct platform_driver bd957x_regulator = {
11271127
.driver = {
11281128
.name = "bd957x-pmic",
1129+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
11291130
},
11301131
.probe = bd957x_probe,
11311132
.id_table = bd957x_pmic_id,

drivers/regulator/cros-ec-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ static struct platform_driver cros_ec_regulator_driver = {
215215
.probe = cros_ec_regulator_probe,
216216
.driver = {
217217
.name = "cros-ec-regulator",
218+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
218219
.of_match_table = regulator_cros_ec_of_match,
219220
},
220221
};

drivers/regulator/fan53880.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ MODULE_DEVICE_TABLE(i2c, fan53880_i2c_id);
172172
static struct i2c_driver fan53880_regulator_driver = {
173173
.driver = {
174174
.name = "fan53880",
175+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
175176
.of_match_table = fan53880_dt_ids,
176177
},
177178
.probe_new = fan53880_i2c_probe,

drivers/regulator/max77826-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ MODULE_DEVICE_TABLE(i2c, max77826_id);
289289
static struct i2c_driver max77826_regulator_driver = {
290290
.driver = {
291291
.name = "max77826",
292+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
292293
.of_match_table = of_match_ptr(max77826_of_match),
293294
},
294295
.probe_new = max77826_i2c_probe,

drivers/regulator/mp5416.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ MODULE_DEVICE_TABLE(i2c, mp5416_id);
237237
static struct i2c_driver mp5416_regulator_driver = {
238238
.driver = {
239239
.name = "mp5416",
240+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
240241
.of_match_table = of_match_ptr(mp5416_of_match),
241242
},
242243
.probe_new = mp5416_i2c_probe,

drivers/regulator/mp8859.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ MODULE_DEVICE_TABLE(i2c, mp8859_i2c_id);
144144
static struct i2c_driver mp8859_regulator_driver = {
145145
.driver = {
146146
.name = "mp8859",
147+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
147148
.of_match_table = of_match_ptr(mp8859_dt_id),
148149
},
149150
.probe_new = mp8859_i2c_probe,

drivers/regulator/mp886x.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ MODULE_DEVICE_TABLE(i2c, mp886x_id);
362362
static struct i2c_driver mp886x_regulator_driver = {
363363
.driver = {
364364
.name = "mp886x-regulator",
365+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
365366
.of_match_table = mp886x_dt_ids,
366367
},
367368
.probe_new = mp886x_i2c_probe,

drivers/regulator/mpq7920.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ MODULE_DEVICE_TABLE(i2c, mpq7920_id);
318318
static struct i2c_driver mpq7920_regulator_driver = {
319319
.driver = {
320320
.name = "mpq7920",
321+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
321322
.of_match_table = of_match_ptr(mpq7920_of_match),
322323
},
323324
.probe_new = mpq7920_i2c_probe,

drivers/regulator/mt6360-regulator.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table);
446446
static struct platform_driver mt6360_regulator_driver = {
447447
.driver = {
448448
.name = "mt6360-regulator",
449+
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
449450
},
450451
.probe = mt6360_regulator_probe,
451452
.id_table = mt6360_regulator_id_table,

0 commit comments

Comments
 (0)