Commit 01d34cc9 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Michael Ellerman
Browse files

powerpc: 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>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240909130902.851274-2-u.kleine-koenig@baylibre.com
parent b0e2b828
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -504,7 +504,7 @@ MODULE_DEVICE_TABLE(of, mpc512x_lpbfifo_match);

static struct platform_driver mpc512x_lpbfifo_driver = {
	.probe = mpc512x_lpbfifo_probe,
	.remove_new = mpc512x_lpbfifo_remove,
	.remove = mpc512x_lpbfifo_remove,
	.driver = {
		.name = DRV_NAME,
		.of_match_table = mpc512x_lpbfifo_match,
+1 −1
Original line number Diff line number Diff line
@@ -143,7 +143,7 @@ static struct platform_driver gpio_halt_driver = {
		.of_match_table = gpio_halt_match,
	},
	.probe		= gpio_halt_probe,
	.remove_new	= gpio_halt_remove,
	.remove		= gpio_halt_remove,
};

module_platform_driver(gpio_halt_driver);
+1 −1
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, gpio_mdio_match);
static struct platform_driver gpio_mdio_driver =
{
	.probe		= gpio_mdio_probe,
	.remove_new	= gpio_mdio_remove,
	.remove		= gpio_mdio_remove,
	.driver = {
		.name = "gpio-mdio-bitbang",
		.of_match_table = gpio_mdio_match,
+1 −1
Original line number Diff line number Diff line
@@ -443,7 +443,7 @@ static struct platform_driver opal_prd_driver = {
		.of_match_table	= opal_prd_match,
	},
	.probe	= opal_prd_probe,
	.remove_new = opal_prd_remove,
	.remove = opal_prd_remove,
};

module_platform_driver(opal_prd_driver);
+1 −1
Original line number Diff line number Diff line
@@ -1509,7 +1509,7 @@ static const struct of_device_id papr_scm_match[] = {

static struct platform_driver papr_scm_driver = {
	.probe = papr_scm_probe,
	.remove_new = papr_scm_remove,
	.remove = papr_scm_remove,
	.driver = {
		.name = "papr_scm",
		.of_match_table = papr_scm_match,
Loading