diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-11-12 11:35:21 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-11-12 16:08:35 +0300 |
commit | 1b55354745e276db38268f23865eb2c4eba5f59b (patch) | |
tree | 8b3b2df2aaf2cc0e83df65a510499abe0528d5c1 /drivers/regulator/virtual.c | |
parent | d1bc2d5cca434e7c854fd16ef021c16d74293b60 (diff) | |
download | linux-1b55354745e276db38268f23865eb2c4eba5f59b.tar.xz |
regulator: 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/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>
Diffstat (limited to 'drivers/regulator/virtual.c')
-rw-r--r-- | drivers/regulator/virtual.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/virtual.c b/drivers/regulator/virtual.c index 0a0ee186c6af..218a0d66a152 100644 --- a/drivers/regulator/virtual.c +++ b/drivers/regulator/virtual.c @@ -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, |