diff options
| author | Uwe Kleine-König <[email protected]> | 2024-09-09 07:31:24 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2024-09-16 13:24:59 +0000 |
| commit | 8db7fdffaaf6cc9f21be5f601c7ef12b173074a5 (patch) | |
| tree | 4b83c3ec8e86db9703f5d9af2d6f353e4f8b48cb /drivers/pwm/pwm-lpc18xx-sct.c | |
| parent | dt-bindings: pwm: allwinner,sun4i-a10-pwm: add top-level constraints (diff) | |
| download | kernel-8db7fdffaaf6cc9f21be5f601c7ef12b173074a5.tar.gz kernel-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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-lpc18xx-sct.c')
| -rw-r--r-- | drivers/pwm/pwm-lpc18xx-sct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-lpc18xx-sct.c b/drivers/pwm/pwm-lpc18xx-sct.c index 04b76d257fd8..f351baa63453 100644 --- a/drivers/pwm/pwm-lpc18xx-sct.c +++ b/drivers/pwm/pwm-lpc18xx-sct.c @@ -446,7 +446,7 @@ static struct platform_driver lpc18xx_pwm_driver = { .of_match_table = lpc18xx_pwm_of_match, }, .probe = lpc18xx_pwm_probe, - .remove_new = lpc18xx_pwm_remove, + .remove = lpc18xx_pwm_remove, }; module_platform_driver(lpc18xx_pwm_driver); |
