Commit 5cbb9b17 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Greg Kroah-Hartman
Browse files

serial: 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 platform drivers below drivers/tty/serial 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/20241007205803.444994-7-u.kleine-koenig@baylibre.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8cf0b939
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -569,7 +569,7 @@ static struct platform_driver aspeed_vuart_driver = {
		.of_match_table = aspeed_vuart_table,
	},
	.probe = aspeed_vuart_probe,
	.remove_new = aspeed_vuart_remove,
	.remove = aspeed_vuart_remove,
};

module_platform_driver(aspeed_vuart_driver);
+1 −1
Original line number Diff line number Diff line
@@ -267,7 +267,7 @@ static struct platform_driver bcm2835aux_serial_driver = {
		.pm = pm_ptr(&bcm2835aux_dev_pm_ops),
	},
	.probe  = bcm2835aux_serial_probe,
	.remove_new = bcm2835aux_serial_remove,
	.remove = bcm2835aux_serial_remove,
};
module_platform_driver(bcm2835aux_serial_driver);

+1 −1
Original line number Diff line number Diff line
@@ -1204,7 +1204,7 @@ static struct platform_driver brcmuart_platform_driver = {
		.of_match_table = brcmuart_dt_ids,
	},
	.probe		= brcmuart_probe,
	.remove_new	= brcmuart_remove,
	.remove		= brcmuart_remove,
};

static int __init brcmuart_init(void)
+1 −1
Original line number Diff line number Diff line
@@ -796,7 +796,7 @@ static struct platform_driver dw8250_platform_driver = {
		.acpi_match_table = dw8250_acpi_match,
	},
	.probe			= dw8250_probe,
	.remove_new		= dw8250_remove,
	.remove			= dw8250_remove,
};

module_platform_driver(dw8250_platform_driver);
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ static struct platform_driver serial8250_em_platform_driver = {
		.of_match_table = serial8250_em_dt_ids,
	},
	.probe			= serial8250_em_probe,
	.remove_new		= serial8250_em_remove,
	.remove			= serial8250_em_remove,
};

module_platform_driver(serial8250_em_platform_driver);
Loading