mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
serial: 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 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: Uwe 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8cf0b93919
commit
5cbb9b1705
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -179,7 +179,7 @@ static struct platform_driver fsl8250_platform_driver = {
|
||||
.acpi_match_table = ACPI_PTR(fsl_8250_acpi_id),
|
||||
},
|
||||
.probe = fsl8250_acpi_probe,
|
||||
.remove_new = fsl8250_acpi_remove,
|
||||
.remove = fsl8250_acpi_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(fsl8250_platform_driver);
|
||||
|
||||
@@ -361,7 +361,7 @@ static struct platform_driver ingenic_uart_platform_driver = {
|
||||
.of_match_table = of_match,
|
||||
},
|
||||
.probe = ingenic_uart_probe,
|
||||
.remove_new = ingenic_uart_remove,
|
||||
.remove = ingenic_uart_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(ingenic_uart_platform_driver);
|
||||
|
||||
@@ -84,7 +84,7 @@ static void serial8250_ioc3_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver serial8250_ioc3_driver = {
|
||||
.probe = serial8250_ioc3_probe,
|
||||
.remove_new = serial8250_ioc3_remove,
|
||||
.remove = serial8250_ioc3_remove,
|
||||
.driver = {
|
||||
.name = "ioc3-serial8250",
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ MODULE_DEVICE_TABLE(of, lpc18xx_serial_match);
|
||||
|
||||
static struct platform_driver lpc18xx_serial_driver = {
|
||||
.probe = lpc18xx_serial_probe,
|
||||
.remove_new = lpc18xx_serial_remove,
|
||||
.remove = lpc18xx_serial_remove,
|
||||
.driver = {
|
||||
.name = "lpc18xx-uart",
|
||||
.of_match_table = lpc18xx_serial_match,
|
||||
|
||||
@@ -654,7 +654,7 @@ static struct platform_driver mtk8250_platform_driver = {
|
||||
.of_match_table = mtk8250_of_match,
|
||||
},
|
||||
.probe = mtk8250_probe,
|
||||
.remove_new = mtk8250_remove,
|
||||
.remove = mtk8250_remove,
|
||||
};
|
||||
module_platform_driver(mtk8250_platform_driver);
|
||||
|
||||
|
||||
@@ -352,7 +352,7 @@ static struct platform_driver of_platform_serial_driver = {
|
||||
.pm = &of_serial_pm_ops,
|
||||
},
|
||||
.probe = of_platform_serial_probe,
|
||||
.remove_new = of_platform_serial_remove,
|
||||
.remove = of_platform_serial_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(of_platform_serial_driver);
|
||||
|
||||
@@ -1867,7 +1867,7 @@ static struct platform_driver omap8250_platform_driver = {
|
||||
.of_match_table = omap8250_dt_ids,
|
||||
},
|
||||
.probe = omap8250_probe,
|
||||
.remove_new = omap8250_remove,
|
||||
.remove = omap8250_remove,
|
||||
};
|
||||
module_platform_driver(omap8250_platform_driver);
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(acpi, acpi_platform_serial_table);
|
||||
|
||||
static struct platform_driver serial8250_isa_driver = {
|
||||
.probe = serial8250_probe,
|
||||
.remove_new = serial8250_remove,
|
||||
.remove = serial8250_remove,
|
||||
.suspend = serial8250_suspend,
|
||||
.resume = serial8250_resume,
|
||||
.driver = {
|
||||
|
||||
@@ -154,7 +154,7 @@ static void serial_pxa_remove(struct platform_device *pdev)
|
||||
|
||||
static struct platform_driver serial_pxa_driver = {
|
||||
.probe = serial_pxa_probe,
|
||||
.remove_new = serial_pxa_remove,
|
||||
.remove = serial_pxa_remove,
|
||||
|
||||
.driver = {
|
||||
.name = "pxa2xx-uart",
|
||||
|
||||
@@ -182,7 +182,7 @@ static struct platform_driver tegra_uart_driver = {
|
||||
.acpi_match_table = ACPI_PTR(tegra_uart_acpi_match),
|
||||
},
|
||||
.probe = tegra_uart_probe,
|
||||
.remove_new = tegra_uart_remove,
|
||||
.remove = tegra_uart_remove,
|
||||
};
|
||||
|
||||
module_platform_driver(tegra_uart_driver);
|
||||
|
||||
@@ -282,7 +282,7 @@ MODULE_DEVICE_TABLE(of, uniphier_uart_match);
|
||||
|
||||
static struct platform_driver uniphier_uart_platform_driver = {
|
||||
.probe = uniphier_uart_probe,
|
||||
.remove_new = uniphier_uart_remove,
|
||||
.remove = uniphier_uart_remove,
|
||||
.driver = {
|
||||
.name = "uniphier-uart",
|
||||
.of_match_table = uniphier_uart_match,
|
||||
|
||||
@@ -449,7 +449,7 @@ MODULE_DEVICE_TABLE(of, altera_jtaguart_match);
|
||||
|
||||
static struct platform_driver altera_jtaguart_platform_driver = {
|
||||
.probe = altera_jtaguart_probe,
|
||||
.remove_new = altera_jtaguart_remove,
|
||||
.remove = altera_jtaguart_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = of_match_ptr(altera_jtaguart_match),
|
||||
|
||||
@@ -617,7 +617,7 @@ MODULE_DEVICE_TABLE(of, altera_uart_match);
|
||||
|
||||
static struct platform_driver altera_uart_platform_driver = {
|
||||
.probe = altera_uart_probe,
|
||||
.remove_new = altera_uart_remove,
|
||||
.remove = altera_uart_remove,
|
||||
.driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = of_match_ptr(altera_uart_match),
|
||||
|
||||
@@ -2937,7 +2937,7 @@ MODULE_DEVICE_TABLE(acpi, sbsa_uart_acpi_match);
|
||||
|
||||
static struct platform_driver arm_sbsa_uart_platform_driver = {
|
||||
.probe = sbsa_uart_probe,
|
||||
.remove_new = sbsa_uart_remove,
|
||||
.remove = sbsa_uart_remove,
|
||||
.driver = {
|
||||
.name = "sbsa-uart",
|
||||
.pm = &pl011_dev_pm_ops,
|
||||
|
||||
@@ -832,7 +832,7 @@ MODULE_DEVICE_TABLE(of, ar933x_uart_of_ids);
|
||||
|
||||
static struct platform_driver ar933x_uart_platform_driver = {
|
||||
.probe = ar933x_uart_probe,
|
||||
.remove_new = ar933x_uart_remove,
|
||||
.remove = ar933x_uart_remove,
|
||||
.driver = {
|
||||
.name = DRIVER_NAME,
|
||||
.of_match_table = of_match_ptr(ar933x_uart_of_ids),
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user