mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 21:54:11 +08:00
pwm: Switch back to struct platform_driver::remove()
After commit 0edb555a65
("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>
This commit is contained in:
parent
edeedfaa0c
commit
8db7fdffaa
@ -299,7 +299,7 @@ static struct platform_driver atmel_hlcdc_pwm_driver = {
|
||||
.pm = pm_ptr(&atmel_hlcdc_pwm_pm_ops),
|
||||
},
|
||||
.probe = atmel_hlcdc_pwm_probe,
|
||||
.remove_new = atmel_hlcdc_pwm_remove,
|
||||
.remove = atmel_hlcdc_pwm_remove,
|
||||
};
|
||||
module_platform_driver(atmel_hlcdc_pwm_driver);
|
||||
|
||||
|
@ -527,7 +527,7 @@ static struct platform_driver atmel_tcb_pwm_driver = {
|
||||
.pm = pm_ptr(&atmel_tcb_pwm_pm_ops),
|
||||
},
|
||||
.probe = atmel_tcb_pwm_probe,
|
||||
.remove_new = atmel_tcb_pwm_remove,
|
||||
.remove = atmel_tcb_pwm_remove,
|
||||
};
|
||||
module_platform_driver(atmel_tcb_pwm_driver);
|
||||
|
||||
|
@ -130,7 +130,7 @@ static struct platform_driver pwm_clk_driver = {
|
||||
.of_match_table = pwm_clk_dt_ids,
|
||||
},
|
||||
.probe = pwm_clk_probe,
|
||||
.remove_new = pwm_clk_remove,
|
||||
.remove = pwm_clk_remove,
|
||||
};
|
||||
module_platform_driver(pwm_clk_driver);
|
||||
|
||||
|
@ -276,7 +276,7 @@ static struct platform_driver hibvt_pwm_driver = {
|
||||
.of_match_table = hibvt_pwm_of_match,
|
||||
},
|
||||
.probe = hibvt_pwm_probe,
|
||||
.remove_new = hibvt_pwm_remove,
|
||||
.remove = hibvt_pwm_remove,
|
||||
};
|
||||
module_platform_driver(hibvt_pwm_driver);
|
||||
|
||||
|
@ -416,7 +416,7 @@ static struct platform_driver img_pwm_driver = {
|
||||
.of_match_table = img_pwm_of_match,
|
||||
},
|
||||
.probe = img_pwm_probe,
|
||||
.remove_new = img_pwm_remove,
|
||||
.remove = img_pwm_remove,
|
||||
};
|
||||
module_platform_driver(img_pwm_driver);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -455,7 +455,7 @@ static struct platform_driver pwm_omap_dmtimer_driver = {
|
||||
.of_match_table = pwm_omap_dmtimer_of_match,
|
||||
},
|
||||
.probe = pwm_omap_dmtimer_probe,
|
||||
.remove_new = pwm_omap_dmtimer_remove,
|
||||
.remove = pwm_omap_dmtimer_remove,
|
||||
};
|
||||
module_platform_driver(pwm_omap_dmtimer_driver);
|
||||
|
||||
|
@ -253,7 +253,7 @@ MODULE_DEVICE_TABLE(of, rcar_pwm_of_table);
|
||||
|
||||
static struct platform_driver rcar_pwm_driver = {
|
||||
.probe = rcar_pwm_probe,
|
||||
.remove_new = rcar_pwm_remove,
|
||||
.remove = rcar_pwm_remove,
|
||||
.driver = {
|
||||
.name = "pwm-rcar",
|
||||
.of_match_table = rcar_pwm_of_table,
|
||||
|
@ -386,7 +386,7 @@ static struct platform_driver rockchip_pwm_driver = {
|
||||
.of_match_table = rockchip_pwm_dt_ids,
|
||||
},
|
||||
.probe = rockchip_pwm_probe,
|
||||
.remove_new = rockchip_pwm_remove,
|
||||
.remove = rockchip_pwm_remove,
|
||||
};
|
||||
module_platform_driver(rockchip_pwm_driver);
|
||||
|
||||
|
@ -336,7 +336,7 @@ MODULE_DEVICE_TABLE(of, pwm_sifive_of_match);
|
||||
|
||||
static struct platform_driver pwm_sifive_driver = {
|
||||
.probe = pwm_sifive_probe,
|
||||
.remove_new = pwm_sifive_remove,
|
||||
.remove = pwm_sifive_remove,
|
||||
.driver = {
|
||||
.name = "pwm-sifive",
|
||||
.of_match_table = pwm_sifive_of_match,
|
||||
|
@ -493,7 +493,7 @@ static struct platform_driver sun4i_pwm_driver = {
|
||||
.of_match_table = sun4i_pwm_dt_ids,
|
||||
},
|
||||
.probe = sun4i_pwm_probe,
|
||||
.remove_new = sun4i_pwm_remove,
|
||||
.remove = sun4i_pwm_remove,
|
||||
};
|
||||
module_platform_driver(sun4i_pwm_driver);
|
||||
|
||||
|
@ -432,7 +432,7 @@ static struct platform_driver tegra_pwm_driver = {
|
||||
.pm = &tegra_pwm_pm_ops,
|
||||
},
|
||||
.probe = tegra_pwm_probe,
|
||||
.remove_new = tegra_pwm_remove,
|
||||
.remove = tegra_pwm_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(tegra_pwm_driver);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -603,7 +603,7 @@ static struct platform_driver ehrpwm_pwm_driver = {
|
||||
.pm = pm_ptr(&ehrpwm_pwm_pm_ops),
|
||||
},
|
||||
.probe = ehrpwm_pwm_probe,
|
||||
.remove_new = ehrpwm_pwm_remove,
|
||||
.remove = ehrpwm_pwm_remove,
|
||||
};
|
||||
module_platform_driver(ehrpwm_pwm_driver);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user