Commit 8db7fdff authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Uwe Kleine-König
Browse files

pwm: Switch back to struct platform_driver::remove()



After commit 0edb555a ("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: default avatarUwe 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: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent edeedfaa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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);

Loading