2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-12 23:33:55 +08:00

regulator: Set PROBE_PREFER_ASYNCHRONOUS for drivers between 4.14 and 4.19

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 4.14 but did exist in Linux 4.19.

NOTE: from a quick "git cherry-pick" it looks as if
"bd718x7-regulator.c" didn't actually exist in v4.19. In 4.19 it was
named "bd71837-regulator.c". See commit 2ece646c90 ("regulator:
bd718xx: rename bd71837 to 718xx")

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20230316125351.2.Iad1f25517bb46a6c7fca8d8c80ed4fc258a79ed9@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Douglas Anderson 2023-03-16 12:54:39 -07:00 committed by Mark Brown
parent 259b93b21a
commit ed6962cc3e
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
6 changed files with 6 additions and 0 deletions

View File

@ -101,6 +101,7 @@ MODULE_DEVICE_TABLE(i2c, pg86x_i2c_id);
static struct i2c_driver pg86x_regulator_driver = { static struct i2c_driver pg86x_regulator_driver = {
.driver = { .driver = {
.name = "88pg86x", .name = "88pg86x",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(pg86x_dt_ids), .of_match_table = of_match_ptr(pg86x_dt_ids),
}, },
.probe_new = pg86x_i2c_probe, .probe_new = pg86x_i2c_probe,

View File

@ -1829,6 +1829,7 @@ MODULE_DEVICE_TABLE(platform, bd718x7_pmic_id);
static struct platform_driver bd718xx_regulator = { static struct platform_driver bd718xx_regulator = {
.driver = { .driver = {
.name = "bd718xx-pmic", .name = "bd718xx-pmic",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
}, },
.probe = bd718xx_probe, .probe = bd718xx_probe,
.id_table = bd718x7_pmic_id, .id_table = bd718x7_pmic_id,

View File

@ -1462,6 +1462,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table);
static struct platform_driver rpmh_regulator_driver = { static struct platform_driver rpmh_regulator_driver = {
.driver = { .driver = {
.name = "qcom-rpmh-regulator", .name = "qcom-rpmh-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = of_match_ptr(rpmh_regulator_match_table), .of_match_table = of_match_ptr(rpmh_regulator_match_table),
}, },
.probe = rpmh_regulator_probe, .probe = rpmh_regulator_probe,

View File

@ -245,6 +245,7 @@ static int sc2731_regulator_probe(struct platform_device *pdev)
static struct platform_driver sc2731_regulator_driver = { static struct platform_driver sc2731_regulator_driver = {
.driver = { .driver = {
.name = "sc27xx-regulator", .name = "sc27xx-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
}, },
.probe = sc2731_regulator_probe, .probe = sc2731_regulator_probe,
}; };

View File

@ -138,6 +138,7 @@ MODULE_DEVICE_TABLE(i2c, sy8106a_i2c_id);
static struct i2c_driver sy8106a_regulator_driver = { static struct i2c_driver sy8106a_regulator_driver = {
.driver = { .driver = {
.name = "sy8106a", .name = "sy8106a",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = sy8106a_i2c_of_match, .of_match_table = sy8106a_i2c_of_match,
}, },
.probe_new = sy8106a_i2c_probe, .probe_new = sy8106a_i2c_probe,

View File

@ -212,6 +212,7 @@ static struct platform_driver uniphier_regulator_driver = {
.remove = uniphier_regulator_remove, .remove = uniphier_regulator_remove,
.driver = { .driver = {
.name = "uniphier-regulator", .name = "uniphier-regulator",
.probe_type = PROBE_PREFER_ASYNCHRONOUS,
.of_match_table = uniphier_regulator_match, .of_match_table = uniphier_regulator_match,
}, },
}; };