diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-10 23:36:23 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-10-15 11:58:10 +0300 |
commit | 6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867 (patch) | |
tree | 96ef4bc102540cd3e0e35fe903f18a922ec35253 /drivers/leds/leds-sun50i-a100.c | |
parent | def9c8b7bc0d9d7436cf29eb0106698e356f006d (diff) | |
download | linux-6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867.tar.xz |
leds: 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/leds/ 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-5-u.kleine-koenig@baylibre.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/leds/leds-sun50i-a100.c')
-rw-r--r-- | drivers/leds/leds-sun50i-a100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-sun50i-a100.c b/drivers/leds/leds-sun50i-a100.c index 03f1b6424692..2c9bd360ab81 100644 --- a/drivers/leds/leds-sun50i-a100.c +++ b/drivers/leds/leds-sun50i-a100.c @@ -558,7 +558,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(sun50i_a100_ledc_pm, static struct platform_driver sun50i_a100_ledc_driver = { .probe = sun50i_a100_ledc_probe, - .remove_new = sun50i_a100_ledc_remove, + .remove = sun50i_a100_ledc_remove, .shutdown = sun50i_a100_ledc_remove, .driver = { .name = "sun50i-a100-ledc", |