diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-09-09 09:31:24 +0200 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@kernel.org> | 2024-09-16 15:24:59 +0200 |
commit | 8db7fdffaaf6cc9f21be5f601c7ef12b173074a5 (patch) | |
tree | 4b83c3ec8e86db9703f5d9af2d6f353e4f8b48cb /drivers/pwm/pwm-tiecap.c | |
parent | edeedfaa0c3ab7a7468ba876b664ffb2f0f5e0d5 (diff) | |
download | linux-stable-8db7fdffaaf6cc9f21be5f601c7ef12b173074a5.tar.gz linux-stable-8db7fdffaaf6cc9f21be5f601c7ef12b173074a5.tar.bz2 linux-stable-8db7fdffaaf6cc9f21be5f601c7ef12b173074a5.zip |
pwm: 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 pwm drivers 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.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240909073125.382040-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'drivers/pwm/pwm-tiecap.c')
-rw-r--r-- | drivers/pwm/pwm-tiecap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c index d6c2b1b1387e..d91b2bdc88fc 100644 --- a/drivers/pwm/pwm-tiecap.c +++ b/drivers/pwm/pwm-tiecap.c @@ -324,7 +324,7 @@ static struct platform_driver ecap_pwm_driver = { .pm = pm_ptr(&ecap_pwm_pm_ops), }, .probe = ecap_pwm_probe, - .remove_new = ecap_pwm_remove, + .remove = ecap_pwm_remove, }; module_platform_driver(ecap_pwm_driver); |