summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/tps65090-charger.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2024-10-10 22:36:24 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2024-10-21 15:51:42 +0200
commit83bce34420eaf91506957703bf9a31d8581ed6cb (patch)
treec321a00498fae772405556049806ae278dd80db0 /drivers/power/supply/tps65090-charger.c
parentpower: supply: hwmon: move interface to private header (diff)
downloadlinux-83bce34420eaf91506957703bf9a31d8581ed6cb.tar.xz
linux-83bce34420eaf91506957703bf9a31d8581ed6cb.zip
power: Switch back to struct platform_driver::remove()
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/power/ 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. While touching these files, make indention of the struct initializer consistent in several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://lore.kernel.org/r/20241010203622.839625-6-u.kleine-koenig@baylibre.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/tps65090-charger.c')
-rw-r--r--drivers/power/supply/tps65090-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/tps65090-charger.c b/drivers/power/supply/tps65090-charger.c
index d41595764caa..d65193e410a6 100644
--- a/drivers/power/supply/tps65090-charger.c
+++ b/drivers/power/supply/tps65090-charger.c
@@ -343,7 +343,7 @@ static struct platform_driver tps65090_charger_driver = {
.of_match_table = of_tps65090_charger_match,
},
.probe = tps65090_charger_probe,
- .remove_new = tps65090_charger_remove,
+ .remove = tps65090_charger_remove,
};
module_platform_driver(tps65090_charger_driver);