Commit 67dc71c6 authored by Douglas Anderson's avatar Douglas Anderson Committed by Mark Brown

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: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230316125351.4.I01f21c98901641a009890590ddc1354c0f294e5e@changeidSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d3b81d97
...@@ -771,7 +771,8 @@ static int bd71828_probe(struct platform_device *pdev) ...@@ -771,7 +771,8 @@ static int bd71828_probe(struct platform_device *pdev)
static struct platform_driver bd71828_regulator = { static struct platform_driver bd71828_regulator = {
.driver = { .driver = {
.name = "bd71828-pmic" .name = "bd71828-pmic",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
}, },
.probe = bd71828_probe, .probe = bd71828_probe,
}; };
......
...@@ -1126,6 +1126,7 @@ MODULE_DEVICE_TABLE(platform, bd957x_pmic_id); ...@@ -1126,6 +1126,7 @@ MODULE_DEVICE_TABLE(platform, bd957x_pmic_id);
static struct platform_driver bd957x_regulator = { static struct platform_driver bd957x_regulator = {
.driver = { .driver = {
.name = "bd957x-pmic", .name = "bd957x-pmic",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
}, },
.probe = bd957x_probe, .probe = bd957x_probe,
.id_table = bd957x_pmic_id, .id_table = bd957x_pmic_id,
......
...@@ -215,6 +215,7 @@ static struct platform_driver cros_ec_regulator_driver = { ...@@ -215,6 +215,7 @@ static struct platform_driver cros_ec_regulator_driver = {
.probe = cros_ec_regulator_probe, .probe = cros_ec_regulator_probe,
.driver = { .driver = {
.name = "cros-ec-regulator", .name = "cros-ec-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = regulator_cros_ec_of_match, .of_match_table = regulator_cros_ec_of_match,
}, },
}; };
......
...@@ -172,6 +172,7 @@ MODULE_DEVICE_TABLE(i2c, fan53880_i2c_id); ...@@ -172,6 +172,7 @@ MODULE_DEVICE_TABLE(i2c, fan53880_i2c_id);
static struct i2c_driver fan53880_regulator_driver = { static struct i2c_driver fan53880_regulator_driver = {
.driver = { .driver = {
.name = "fan53880", .name = "fan53880",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = fan53880_dt_ids, .of_match_table = fan53880_dt_ids,
}, },
.probe_new = fan53880_i2c_probe, .probe_new = fan53880_i2c_probe,
......
...@@ -289,6 +289,7 @@ MODULE_DEVICE_TABLE(i2c, max77826_id); ...@@ -289,6 +289,7 @@ MODULE_DEVICE_TABLE(i2c, max77826_id);
static struct i2c_driver max77826_regulator_driver = { static struct i2c_driver max77826_regulator_driver = {
.driver = { .driver = {
.name = "max77826", .name = "max77826",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(max77826_of_match), .of_match_table = of_match_ptr(max77826_of_match),
}, },
.probe_new = max77826_i2c_probe, .probe_new = max77826_i2c_probe,
......
...@@ -237,6 +237,7 @@ MODULE_DEVICE_TABLE(i2c, mp5416_id); ...@@ -237,6 +237,7 @@ MODULE_DEVICE_TABLE(i2c, mp5416_id);
static struct i2c_driver mp5416_regulator_driver = { static struct i2c_driver mp5416_regulator_driver = {
.driver = { .driver = {
.name = "mp5416", .name = "mp5416",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(mp5416_of_match), .of_match_table = of_match_ptr(mp5416_of_match),
}, },
.probe_new = mp5416_i2c_probe, .probe_new = mp5416_i2c_probe,
......
...@@ -144,6 +144,7 @@ MODULE_DEVICE_TABLE(i2c, mp8859_i2c_id); ...@@ -144,6 +144,7 @@ MODULE_DEVICE_TABLE(i2c, mp8859_i2c_id);
static struct i2c_driver mp8859_regulator_driver = { static struct i2c_driver mp8859_regulator_driver = {
.driver = { .driver = {
.name = "mp8859", .name = "mp8859",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(mp8859_dt_id), .of_match_table = of_match_ptr(mp8859_dt_id),
}, },
.probe_new = mp8859_i2c_probe, .probe_new = mp8859_i2c_probe,
......
...@@ -362,6 +362,7 @@ MODULE_DEVICE_TABLE(i2c, mp886x_id); ...@@ -362,6 +362,7 @@ MODULE_DEVICE_TABLE(i2c, mp886x_id);
static struct i2c_driver mp886x_regulator_driver = { static struct i2c_driver mp886x_regulator_driver = {
.driver = { .driver = {
.name = "mp886x-regulator", .name = "mp886x-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = mp886x_dt_ids, .of_match_table = mp886x_dt_ids,
}, },
.probe_new = mp886x_i2c_probe, .probe_new = mp886x_i2c_probe,
......
...@@ -318,6 +318,7 @@ MODULE_DEVICE_TABLE(i2c, mpq7920_id); ...@@ -318,6 +318,7 @@ MODULE_DEVICE_TABLE(i2c, mpq7920_id);
static struct i2c_driver mpq7920_regulator_driver = { static struct i2c_driver mpq7920_regulator_driver = {
.driver = { .driver = {
.name = "mpq7920", .name = "mpq7920",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(mpq7920_of_match), .of_match_table = of_match_ptr(mpq7920_of_match),
}, },
.probe_new = mpq7920_i2c_probe, .probe_new = mpq7920_i2c_probe,
......
...@@ -446,6 +446,7 @@ MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table); ...@@ -446,6 +446,7 @@ MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table);
static struct platform_driver mt6360_regulator_driver = { static struct platform_driver mt6360_regulator_driver = {
.driver = { .driver = {
.name = "mt6360-regulator", .name = "mt6360-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
}, },
.probe = mt6360_regulator_probe, .probe = mt6360_regulator_probe,
.id_table = mt6360_regulator_id_table, .id_table = mt6360_regulator_id_table,
......
...@@ -872,6 +872,7 @@ MODULE_DEVICE_TABLE(of, pca9450_of_match); ...@@ -872,6 +872,7 @@ MODULE_DEVICE_TABLE(of, pca9450_of_match);
static struct i2c_driver pca9450_i2c_driver = { static struct i2c_driver pca9450_i2c_driver = {
.driver = { .driver = {
.name = "nxp-pca9450", .name = "nxp-pca9450",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = pca9450_of_match, .of_match_table = pca9450_of_match,
}, },
.probe_new = pca9450_i2c_probe, .probe_new = pca9450_i2c_probe,
......
...@@ -894,6 +894,7 @@ static int qcom_labibb_regulator_probe(struct platform_device *pdev) ...@@ -894,6 +894,7 @@ static int qcom_labibb_regulator_probe(struct platform_device *pdev)
static struct platform_driver qcom_labibb_regulator_driver = { static struct platform_driver qcom_labibb_regulator_driver = {
.driver = { .driver = {
.name = "qcom-lab-ibb-regulator", .name = "qcom-lab-ibb-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = qcom_labibb_match, .of_match_table = qcom_labibb_match,
}, },
.probe = qcom_labibb_regulator_probe, .probe = qcom_labibb_regulator_probe,
......
...@@ -100,6 +100,7 @@ MODULE_DEVICE_TABLE(of, qcom_usb_vbus_regulator_match); ...@@ -100,6 +100,7 @@ MODULE_DEVICE_TABLE(of, qcom_usb_vbus_regulator_match);
static struct platform_driver qcom_usb_vbus_regulator_driver = { static struct platform_driver qcom_usb_vbus_regulator_driver = {
.driver = { .driver = {
.name = "qcom-usb-vbus-regulator", .name = "qcom-usb-vbus-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = qcom_usb_vbus_regulator_match, .of_match_table = qcom_usb_vbus_regulator_match,
}, },
.probe = qcom_usb_vbus_regulator_probe, .probe = qcom_usb_vbus_regulator_probe,
......
...@@ -396,6 +396,7 @@ MODULE_DEVICE_TABLE(of, attiny_dt_ids); ...@@ -396,6 +396,7 @@ MODULE_DEVICE_TABLE(of, attiny_dt_ids);
static struct i2c_driver attiny_regulator_driver = { static struct i2c_driver attiny_regulator_driver = {
.driver = { .driver = {
.name = "rpi_touchscreen_attiny", .name = "rpi_touchscreen_attiny",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(attiny_dt_ids), .of_match_table = of_match_ptr(attiny_dt_ids),
}, },
.probe_new = attiny_i2c_probe, .probe_new = attiny_i2c_probe,
......
...@@ -239,6 +239,7 @@ MODULE_DEVICE_TABLE(of, rt4801_of_id); ...@@ -239,6 +239,7 @@ MODULE_DEVICE_TABLE(of, rt4801_of_id);
static struct i2c_driver rt4801_driver = { static struct i2c_driver rt4801_driver = {
.driver = { .driver = {
.name = "rt4801", .name = "rt4801",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(rt4801_of_id), .of_match_table = of_match_ptr(rt4801_of_id),
}, },
.probe_new = rt4801_probe, .probe_new = rt4801_probe,
......
...@@ -425,6 +425,7 @@ MODULE_DEVICE_TABLE(of, rtmv20_of_id); ...@@ -425,6 +425,7 @@ MODULE_DEVICE_TABLE(of, rtmv20_of_id);
static struct i2c_driver rtmv20_driver = { static struct i2c_driver rtmv20_driver = {
.driver = { .driver = {
.name = "rtmv20", .name = "rtmv20",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(rtmv20_of_id), .of_match_table = of_match_ptr(rtmv20_of_id),
.pm = &rtmv20_pm, .pm = &rtmv20_pm,
}, },
......
...@@ -187,6 +187,7 @@ MODULE_DEVICE_TABLE(i2c, sy8827n_id); ...@@ -187,6 +187,7 @@ MODULE_DEVICE_TABLE(i2c, sy8827n_id);
static struct i2c_driver sy8827n_regulator_driver = { static struct i2c_driver sy8827n_regulator_driver = {
.driver = { .driver = {
.name = "sy8827n-regulator", .name = "sy8827n-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = sy8827n_dt_ids, .of_match_table = sy8827n_dt_ids,
}, },
.probe_new = sy8827n_i2c_probe, .probe_new = sy8827n_i2c_probe,
......
...@@ -89,6 +89,7 @@ static struct platform_driver ipq4019_regulator_driver = { ...@@ -89,6 +89,7 @@ static struct platform_driver ipq4019_regulator_driver = {
.probe = ipq4019_regulator_probe, .probe = ipq4019_regulator_probe,
.driver = { .driver = {
.name = "vqmmc-ipq4019-regulator", .name = "vqmmc-ipq4019-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(regulator_ipq4019_of_match), .of_match_table = of_match_ptr(regulator_ipq4019_of_match),
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment