regulator: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 12 Nov 2024 08:35:21 +0000 (09:35 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 12 Nov 2024 13:08:35 +0000 (13:08 +0000)
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/regulator to use .remove(),
with the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.

A few whitespace changes are done en passant to make indention
consistent.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/ab85510f83fa901e44d5d563fe6e768054229bfe.1731398433.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-ldo1.c
drivers/regulator/bd9571mwv-regulator.c
drivers/regulator/db8500-prcmu.c
drivers/regulator/stm32-vrefbuf.c
drivers/regulator/uniphier-regulator.c
drivers/regulator/userspace-consumer.c
drivers/regulator/virtual.c
drivers/regulator/wm8350-regulator.c

index 4b54068..5018439 100644 (file)
@@ -375,18 +375,18 @@ static int madera_ldo1_probe(struct platform_device *pdev)
 
 static struct platform_driver arizona_ldo1_driver = {
        .probe = arizona_ldo1_probe,
-       .remove_new = arizona_ldo1_remove,
-       .driver         = {
-               .name   = "arizona-ldo1",
+       .remove = arizona_ldo1_remove,
+       .driver = {
+               .name = "arizona-ldo1",
                .probe_type = PROBE_FORCE_SYNCHRONOUS,
        },
 };
 
 static struct platform_driver madera_ldo1_driver = {
        .probe = madera_ldo1_probe,
-       .remove_new = arizona_ldo1_remove,
-       .driver         = {
-               .name   = "madera-ldo1",
+       .remove = arizona_ldo1_remove,
+       .driver = {
+               .name = "madera-ldo1",
                .probe_type = PROBE_FORCE_SYNCHRONOUS,
        },
 };
index c7ceba5..209beab 100644 (file)
@@ -356,7 +356,7 @@ static struct platform_driver bd9571mwv_regulator_driver = {
                .pm = DEV_PM_OPS,
        },
        .probe = bd9571mwv_regulator_probe,
-       .remove_new = bd9571mwv_regulator_remove,
+       .remove = bd9571mwv_regulator_remove,
        .id_table = bd9571mwv_regulator_id_table,
 };
 module_platform_driver(bd9571mwv_regulator_driver);
index 1e2d54d..1ec2e13 100644 (file)
@@ -480,7 +480,7 @@ static struct platform_driver db8500_regulator_driver = {
                .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
        .probe = db8500_regulator_probe,
-       .remove_new = db8500_regulator_remove,
+       .remove = db8500_regulator_remove,
 };
 
 static int __init db8500_regulator_init(void)
index 4085510..a85ea94 100644 (file)
@@ -280,7 +280,7 @@ MODULE_DEVICE_TABLE(of, stm32_vrefbuf_of_match);
 
 static struct platform_driver stm32_vrefbuf_driver = {
        .probe = stm32_vrefbuf_probe,
-       .remove_new = stm32_vrefbuf_remove,
+       .remove = stm32_vrefbuf_remove,
        .driver = {
                .name  = "stm32-vrefbuf",
                .probe_type = PROBE_PREFER_ASYNCHRONOUS,
index 5f86804..74939b7 100644 (file)
@@ -207,7 +207,7 @@ MODULE_DEVICE_TABLE(of, uniphier_regulator_match);
 
 static struct platform_driver uniphier_regulator_driver = {
        .probe = uniphier_regulator_probe,
-       .remove_new = uniphier_regulator_remove,
+       .remove = uniphier_regulator_remove,
        .driver = {
                .name  = "uniphier-regulator",
                .probe_type = PROBE_PREFER_ASYNCHRONOUS,
index 6153d02..72bb5ff 100644 (file)
@@ -210,7 +210,7 @@ MODULE_DEVICE_TABLE(of, regulator_userspace_consumer_of_match);
 
 static struct platform_driver regulator_userspace_consumer_driver = {
        .probe          = regulator_userspace_consumer_probe,
-       .remove_new     = regulator_userspace_consumer_remove,
+       .remove         = regulator_userspace_consumer_remove,
        .driver         = {
                .name           = "reg-userspace-consumer",
                .probe_type     = PROBE_PREFER_ASYNCHRONOUS,
index 0a0ee18..218a0d6 100644 (file)
@@ -357,7 +357,7 @@ static void regulator_virtual_remove(struct platform_device *pdev)
 
 static struct platform_driver regulator_virtual_consumer_driver = {
        .probe          = regulator_virtual_probe,
-       .remove_new     = regulator_virtual_remove,
+       .remove         = regulator_virtual_remove,
        .driver         = {
                .name           = "reg-virt-consumer",
                .probe_type     = PROBE_PREFER_ASYNCHRONOUS,
index 9939a5d..d09864b 100644 (file)
@@ -1304,9 +1304,9 @@ EXPORT_SYMBOL_GPL(wm8350_register_led);
 
 static struct platform_driver wm8350_regulator_driver = {
        .probe = wm8350_regulator_probe,
-       .remove_new = wm8350_regulator_remove,
-       .driver         = {
-               .name   = "wm8350-regulator",
+       .remove = wm8350_regulator_remove,
+       .driver = {
+               .name = "wm8350-regulator",
                .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
 };