diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-10-10 22:36:23 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-10-15 09:58:10 +0100 |
commit | 6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867 (patch) | |
tree | 96ef4bc102540cd3e0e35fe903f18a922ec35253 /drivers/leds/leds-sunfire.c | |
parent | def9c8b7bc0d9d7436cf29eb0106698e356f006d (diff) | |
download | lwn-6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867.tar.gz lwn-6bdc6d4a374fa5a4fbed7d913f0c6d11d08bb867.zip |
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-sunfire.c')
-rw-r--r-- | drivers/leds/leds-sunfire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/leds-sunfire.c b/drivers/leds/leds-sunfire.c index a621e5e5c75c..bd24e7f5947a 100644 --- a/drivers/leds/leds-sunfire.c +++ b/drivers/leds/leds-sunfire.c @@ -219,7 +219,7 @@ MODULE_ALIAS("platform:sunfire-fhc-leds"); static struct platform_driver sunfire_clockboard_led_driver = { .probe = sunfire_clockboard_led_probe, - .remove_new = sunfire_led_generic_remove, + .remove = sunfire_led_generic_remove, .driver = { .name = "sunfire-clockboard-leds", }, @@ -227,7 +227,7 @@ static struct platform_driver sunfire_clockboard_led_driver = { static struct platform_driver sunfire_fhc_led_driver = { .probe = sunfire_fhc_led_probe, - .remove_new = sunfire_led_generic_remove, + .remove = sunfire_led_generic_remove, .driver = { .name = "sunfire-fhc-leds", }, |