]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
serial: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 7 Oct 2024 20:58:04 +0000 (22:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2024 06:13:28 +0000 (08:13 +0200)
After commit 0edb555a65d1 ("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>
66 files changed:
drivers/tty/serial/8250/8250_aspeed_vuart.c
drivers/tty/serial/8250/8250_bcm2835aux.c
drivers/tty/serial/8250/8250_bcm7271.c
drivers/tty/serial/8250/8250_dw.c
drivers/tty/serial/8250/8250_em.c
drivers/tty/serial/8250/8250_fsl.c
drivers/tty/serial/8250/8250_ingenic.c
drivers/tty/serial/8250/8250_ioc3.c
drivers/tty/serial/8250/8250_lpc18xx.c
drivers/tty/serial/8250/8250_mtk.c
drivers/tty/serial/8250/8250_of.c
drivers/tty/serial/8250/8250_omap.c
drivers/tty/serial/8250/8250_platform.c
drivers/tty/serial/8250/8250_pxa.c
drivers/tty/serial/8250/8250_tegra.c
drivers/tty/serial/8250/8250_uniphier.c
drivers/tty/serial/altera_jtaguart.c
drivers/tty/serial/altera_uart.c
drivers/tty/serial/amba-pl011.c
drivers/tty/serial/ar933x_uart.c
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/bcm63xx_uart.c
drivers/tty/serial/clps711x.c
drivers/tty/serial/cpm_uart.c
drivers/tty/serial/digicolor-usart.c
drivers/tty/serial/esp32_acm.c
drivers/tty/serial/esp32_uart.c
drivers/tty/serial/fsl_linflexuart.c
drivers/tty/serial/fsl_lpuart.c
drivers/tty/serial/imx.c
drivers/tty/serial/lantiq.c
drivers/tty/serial/liteuart.c
drivers/tty/serial/lpc32xx_hs.c
drivers/tty/serial/ma35d1_serial.c
drivers/tty/serial/mcf.c
drivers/tty/serial/meson_uart.c
drivers/tty/serial/milbeaut_usio.c
drivers/tty/serial/mpc52xx_uart.c
drivers/tty/serial/msm_serial.c
drivers/tty/serial/mxs-auart.c
drivers/tty/serial/omap-serial.c
drivers/tty/serial/owl-uart.c
drivers/tty/serial/pic32_uart.c
drivers/tty/serial/pmac_zilog.c
drivers/tty/serial/qcom_geni_serial.c
drivers/tty/serial/rda-uart.c
drivers/tty/serial/sa1100.c
drivers/tty/serial/samsung_tty.c
drivers/tty/serial/sccnxp.c
drivers/tty/serial/serial-tegra.c
drivers/tty/serial/serial_txx9.c
drivers/tty/serial/sh-sci.c
drivers/tty/serial/sifive.c
drivers/tty/serial/sprd_serial.c
drivers/tty/serial/st-asc.c
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/sunhv.c
drivers/tty/serial/sunplus-uart.c
drivers/tty/serial/sunsab.c
drivers/tty/serial/sunsu.c
drivers/tty/serial/sunzilog.c
drivers/tty/serial/tegra-tcu.c
drivers/tty/serial/timbuart.c
drivers/tty/serial/uartlite.c
drivers/tty/serial/ucc_uart.c
drivers/tty/serial/xilinx_uartps.c

index 25c201cfb91e17fe95a432bcc4a96f0071478131..e5da9ce26006db4462c3d56b6d113c445a7413d5 100644 (file)
@@ -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);
index d7a0f271263a9325f707991e40514d61bff66b95..fdb53b54e99e60a00aab02d0785bb0e31beeee6b 100644 (file)
@@ -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);
 
index 2569ca69223f3ccf4441ec81684929384cb3a62c..a713ffce533c56f7628dd5bdbe90de6926f1115a 100644 (file)
@@ -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)
index ab9e7f20426025432d98632809552eef9b896cee..3b278bf8520d5e0deaf4ef62628c9a1a7273b21a 100644 (file)
@@ -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);
index a754755100ffe1f11ca7ebfdb90d915e6c3a2187..35094f884492c7638327d9417ffc918f2a39910d 100644 (file)
@@ -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);
index b4ed442082a8521b61ec6d87cc01864a3e9a475e..1b7bd55619c660a1e8137b267267435b8e7a69a9 100644 (file)
@@ -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);
index a2783e38a2e31641c50667df086ecfad27df34bf..a73dd3773640484757e15e9c3fa372afbd8c0384 100644 (file)
@@ -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);
index 50c77c3dacf2c809dd1785e54a363c5381d605b9..499e80aa4cf96b4e059c30db46780db086f39799 100644 (file)
@@ -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",
        }
index 47e1a056a60c34b49f37dc4aa0f0c3963bf78bef..d52445948da0b85ddf9af97d92b5bb8c0d90f206 100644 (file)
@@ -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,
index b9cca210e171c38498677bb913cada8a924914c1..ed2225bc0544cca1495e7c8164b84d624da40cd1 100644 (file)
@@ -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);
 
index e14f47ef1172546c72f9fda9b8301140a8d7e93f..64aed7efc569703711131e2f5127f36a634718bc 100644 (file)
@@ -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);
index 88b58f44e4e976a325cd3edf6dfa6c23c400dc0f..9b99a50ccc4f75095833aa6582171e8703927bd1 100644 (file)
@@ -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);
 
index be7ff07cbdd009514c5283ec4a025d7d56b361d8..8bdc1879d952be58dfd0095a85a25d9d17ae9602 100644 (file)
@@ -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         = {
index 96dd6126296c6d328e363d772ee4849fc0fd9243..6dd0190b4843b42fbafb925381e8c3f6d4e695ae 100644 (file)
@@ -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",
index 60a80d00d2519b600dfb4fb635f2f1e33551adad..2f3b0075763f28db4fe7e997230f78688d1f2988 100644 (file)
@@ -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);
index 670d2ca0f7572948384c67a49855cd96464447c1..4874a9632db391e48f47326fdbeff93442259302 100644 (file)
@@ -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,
index effcba71ea775ab0d5f0f6d48576b0110844a7db..6162108c758edcbb6ebd242e0eda3a02779008e5 100644 (file)
@@ -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),
index 897f0995b2fe77b0827be4a2221c7abec6f57f06..8eed2542627e21f68deef939abcb7265874e678d 100644 (file)
@@ -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),
index 7d0134ecd82fa54765a46eb9fabe7caba18c0bf3..56e587b94823513ecfb676fa08fe289904258916 100644 (file)
@@ -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,
index 47889a557119885690ee055e2bdcb616b0bcc930..8bb33556b31208a1707ca7a48db0aa2ca81452bd 100644 (file)
@@ -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),
index 09b246c9e389ecf791c818b180e216f99df7de26..b9be993ebdf46611426600cd84422fd3fd2d7e6b 100644 (file)
@@ -3017,7 +3017,7 @@ static SIMPLE_DEV_PM_OPS(atmel_serial_pm_ops, atmel_serial_suspend,
 
 static struct platform_driver atmel_serial_driver = {
        .probe          = atmel_serial_probe,
-       .remove_new     = atmel_serial_remove,
+       .remove         = atmel_serial_remove,
        .driver         = {
                .name                   = "atmel_usart_serial",
                .of_match_table         = of_match_ptr(atmel_serial_dt_ids),
index b88cc28c94e33711be426201157f7e905b9e09ff..51df9d2d8bfc5470b21762e920587b8a5b17ac68 100644 (file)
@@ -884,7 +884,7 @@ MODULE_DEVICE_TABLE(of, bcm63xx_of_match);
  */
 static struct platform_driver bcm_uart_platform_driver = {
        .probe  = bcm_uart_probe,
-       .remove_new = bcm_uart_remove,
+       .remove = bcm_uart_remove,
        .driver = {
                .name  = "bcm63xx_uart",
                .of_match_table = bcm63xx_of_match,
index 30425a3d19fbe04e3b544a5bdb2b3a216fd84ad2..83186bf50002722d8d448679ad1dfee883fac5bb 100644 (file)
@@ -529,7 +529,7 @@ static struct platform_driver clps711x_uart_platform = {
                .of_match_table = of_match_ptr(clps711x_uart_dt_ids),
        },
        .probe  = uart_clps711x_probe,
-       .remove_new = uart_clps711x_remove,
+       .remove = uart_clps711x_remove,
 };
 
 static int __init uart_clps711x_init(void)
index a927478f581d71431a8d035bd3758af654a10bba..550712a1359376b4b194efb41275f29d878319f2 100644 (file)
@@ -1573,7 +1573,7 @@ static struct platform_driver cpm_uart_driver = {
                .of_match_table = cpm_uart_match,
        },
        .probe = cpm_uart_probe,
-       .remove_new = cpm_uart_remove,
+       .remove = cpm_uart_remove,
  };
 
 static int __init cpm_uart_init(void)
index 2ccd13cc0a899f589bd5b80cc70081c3d053ff62..d2482df5cb9b469c5c85df399ecb18049ee0297c 100644 (file)
@@ -522,7 +522,7 @@ static struct platform_driver digicolor_uart_platform = {
                .of_match_table = of_match_ptr(digicolor_uart_dt_ids),
        },
        .probe  = digicolor_uart_probe,
-       .remove_new = digicolor_uart_remove,
+       .remove = digicolor_uart_remove,
 };
 
 static int __init digicolor_uart_init(void)
index 85eb0392e3793525eda2d62864703369e3c761ac..bb7cc65427f0b756ecc535a7cfd468aab472e867 100644 (file)
@@ -423,7 +423,7 @@ static void esp32s3_acm_remove(struct platform_device *pdev)
 
 static struct platform_driver esp32s3_acm_driver = {
        .probe          = esp32s3_acm_probe,
-       .remove_new     = esp32s3_acm_remove,
+       .remove         = esp32s3_acm_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .of_match_table = esp32s3_acm_dt_ids,
index 8c86cf9cb7630cbc884f87ed595f7aea54d6fdb8..667c2198a03a51e9b88fa760868a123601994897 100644 (file)
@@ -743,7 +743,7 @@ static void esp32_uart_remove(struct platform_device *pdev)
 
 static struct platform_driver esp32_uart_driver = {
        .probe          = esp32_uart_probe,
-       .remove_new     = esp32_uart_remove,
+       .remove         = esp32_uart_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .of_match_table = esp32_uart_dt_ids,
index e972df4b188d3b061606f42cbbeb9cdc1ec36ca9..e70a56de1fcedb2f53d4503d2236934a580df8aa 100644 (file)
@@ -882,7 +882,7 @@ static SIMPLE_DEV_PM_OPS(linflex_pm_ops, linflex_suspend, linflex_resume);
 
 static struct platform_driver linflex_driver = {
        .probe          = linflex_probe,
-       .remove_new     = linflex_remove,
+       .remove         = linflex_remove,
        .driver         = {
                .name   = DRIVER_NAME,
                .of_match_table = linflex_dt_ids,
index 77efa7ee6eda29aa9a1d92740430327ffe416eb8..c14a83c86029a33cbefad6b56784e474e3ddd7c7 100644 (file)
@@ -3206,7 +3206,7 @@ static const struct dev_pm_ops lpuart_pm_ops = {
 
 static struct platform_driver lpuart_driver = {
        .probe          = lpuart_probe,
-       .remove_new     = lpuart_remove,
+       .remove         = lpuart_remove,
        .driver         = {
                .name   = "fsl-lpuart",
                .of_match_table = lpuart_dt_ids,
index 67d4a72eda770b3c8015e4ec9400222e392c45eb..f7367969a42ad671c42e9e63d89828c6233722bc 100644 (file)
@@ -2702,7 +2702,7 @@ static const struct dev_pm_ops imx_uart_pm_ops = {
 
 static struct platform_driver imx_uart_platform_driver = {
        .probe = imx_uart_probe,
-       .remove_new = imx_uart_remove,
+       .remove = imx_uart_remove,
 
        .driver = {
                .name = "imx-uart",
index a0731773ce75c5affaafd7e8dd69a173583fb035..58a3ab030d6706315923622c49b3e9d7ab5cc516 100644 (file)
@@ -915,7 +915,7 @@ MODULE_DEVICE_TABLE(of, ltq_asc_match);
 
 static struct platform_driver lqasc_driver = {
        .probe          = lqasc_probe,
-       .remove_new     = lqasc_remove,
+       .remove         = lqasc_remove,
        .driver         = {
                .name   = DRVNAME,
                .of_match_table = ltq_asc_match,
index 3ce369f76349835a1c9bd0ac90dbcabf4d049105..6c13cf1ab646fbb0e3e8bbb35bd18c95193f2b79 100644 (file)
@@ -353,7 +353,7 @@ MODULE_DEVICE_TABLE(of, liteuart_of_match);
 
 static struct platform_driver liteuart_platform_driver = {
        .probe = liteuart_probe,
-       .remove_new = liteuart_remove,
+       .remove = liteuart_remove,
        .driver = {
                .name = KBUILD_MODNAME,
                .of_match_table = liteuart_of_match,
index 3e4ac46de1bc3786173c72754e0240965aec183c..42c5f9bc18b7c3abd7d5b4c4e6107dc6d48fe446 100644 (file)
@@ -695,7 +695,7 @@ MODULE_DEVICE_TABLE(of, serial_hs_lpc32xx_dt_ids);
 
 static struct platform_driver serial_hs_lpc32xx_driver = {
        .probe          = serial_hs_lpc32xx_probe,
-       .remove_new     = serial_hs_lpc32xx_remove,
+       .remove         = serial_hs_lpc32xx_remove,
        .suspend        = serial_hs_lpc32xx_suspend,
        .resume         = serial_hs_lpc32xx_resume,
        .driver         = {
index 3b4206e815fe9d7feb4ebf7720197c16cbe82501..8dcad52eedfd1c1cc0a293533e12d9afa4592d9a 100644 (file)
@@ -794,7 +794,7 @@ static int ma35d1serial_resume(struct platform_device *dev)
 
 static struct platform_driver ma35d1serial_driver = {
        .probe      = ma35d1serial_probe,
-       .remove_new = ma35d1serial_remove,
+       .remove     = ma35d1serial_remove,
        .suspend    = ma35d1serial_suspend,
        .resume     = ma35d1serial_resume,
        .driver     = {
index 58858dd352c59bfd44ea6922b9ae01b103d588d0..93e7dda4d39acd23daf8c0d4c29ac8d666f263c5 100644 (file)
@@ -616,7 +616,7 @@ static void mcf_remove(struct platform_device *pdev)
 
 static struct platform_driver mcf_platform_driver = {
        .probe          = mcf_probe,
-       .remove_new     = mcf_remove,
+       .remove         = mcf_remove,
        .driver         = {
                .name   = "mcfuart",
        },
index 8eb586ac3b0da0646316f2c5f13715e8e35a9cb3..a6cb2a535f9dcca48b9784432352341e81cd253d 100644 (file)
@@ -842,7 +842,7 @@ MODULE_DEVICE_TABLE(of, meson_uart_dt_match);
 
 static  struct platform_driver meson_uart_platform_driver = {
        .probe          = meson_uart_probe,
-       .remove_new     = meson_uart_remove,
+       .remove         = meson_uart_remove,
        .driver         = {
                .name           = "meson_uart",
                .of_match_table = meson_uart_dt_match,
index fb082ee73d5b25c80a714d92b23d9bf94b2cefaa..059bea18dbab569a610cb96a1f153a01ca9d362c 100644 (file)
@@ -570,7 +570,7 @@ MODULE_DEVICE_TABLE(of, mlb_usio_dt_ids);
 
 static struct platform_driver mlb_usio_driver = {
        .probe          = mlb_usio_probe,
-       .remove_new     = mlb_usio_remove,
+       .remove         = mlb_usio_remove,
        .driver         = {
                .name   = USIO_NAME,
                .of_match_table = mlb_usio_dt_ids,
index 95dae5e27b28685e744ccf137988adce998de515..f55aa353aed9ee6273d10bce15eefbee45a76c0f 100644 (file)
@@ -1843,7 +1843,7 @@ MODULE_DEVICE_TABLE(of, mpc52xx_uart_of_match);
 
 static struct platform_driver mpc52xx_uart_of_driver = {
        .probe          = mpc52xx_uart_of_probe,
-       .remove_new     = mpc52xx_uart_of_remove,
+       .remove         = mpc52xx_uart_of_remove,
 #ifdef CONFIG_PM
        .suspend        = mpc52xx_uart_of_suspend,
        .resume         = mpc52xx_uart_of_resume,
index 0a9c5219df88bf30ee9c48ef95cc487a038fab01..1b137e06844425584afe5d3f647e9537c6e2d658 100644 (file)
@@ -1894,7 +1894,7 @@ static const struct dev_pm_ops msm_serial_dev_pm_ops = {
 };
 
 static struct platform_driver msm_platform_driver = {
-       .remove_new = msm_serial_remove,
+       .remove = msm_serial_remove,
        .probe = msm_serial_probe,
        .driver = {
                .name = "msm_serial",
index a1c76565c3991f917dcf3c0efd7277c796e0952b..cc65c9fb6446c240d50ac2d12890ffa4f23aa65f 100644 (file)
@@ -1704,7 +1704,7 @@ static void mxs_auart_remove(struct platform_device *pdev)
 
 static struct platform_driver mxs_auart_driver = {
        .probe = mxs_auart_probe,
-       .remove_new = mxs_auart_remove,
+       .remove = mxs_auart_remove,
        .driver = {
                .name = "mxs-auart",
                .of_match_table = mxs_auart_dt_ids,
index d7e172eeaab153d8a62b8ea9bd25724fed7cb788..0b85f47ff19e041f9e10202a07bd9f9e640ce0af 100644 (file)
@@ -1802,7 +1802,7 @@ MODULE_DEVICE_TABLE(of, omap_serial_of_match);
 
 static struct platform_driver serial_omap_driver = {
        .probe          = serial_omap_probe,
-       .remove_new     = serial_omap_remove,
+       .remove         = serial_omap_remove,
        .driver         = {
                .name   = OMAP_SERIAL_DRIVER_NAME,
                .pm     = &serial_omap_dev_pm_ops,
index ecec483d4d59df5ac6baf9ff118031f5a542c8b4..0542882cfbbe452eb08d02acd8eda37746b20b21 100644 (file)
@@ -730,7 +730,7 @@ static void owl_uart_remove(struct platform_device *pdev)
 
 static struct platform_driver owl_uart_platform_driver = {
        .probe = owl_uart_probe,
-       .remove_new = owl_uart_remove,
+       .remove = owl_uart_remove,
        .driver = {
                .name = "owl-uart",
                .of_match_table = owl_uart_dt_matches,
index 261c8115a700ccce7c4472bfc36ccc1792c1c503..14d50bd7f1bd3575e60e51783bf5b2d821f9168d 100644 (file)
@@ -956,7 +956,7 @@ MODULE_DEVICE_TABLE(of, pic32_serial_dt_ids);
 
 static struct platform_driver pic32_uart_platform_driver = {
        .probe          = pic32_uart_probe,
-       .remove_new     = pic32_uart_remove,
+       .remove         = pic32_uart_remove,
        .driver         = {
                .name   = PIC32_DEV_NAME,
                .of_match_table = of_match_ptr(pic32_serial_dt_ids),
index 8969b11cc0a9a98aae3ee41f965dbc1f617d243f..e3a919328695454633934e118f78490020c8e556 100644 (file)
@@ -1776,7 +1776,7 @@ static struct macio_driver pmz_driver = {
 
 static struct platform_driver pmz_driver = {
        .probe          = pmz_attach,
-       .remove_new     = pmz_detach,
+       .remove         = pmz_detach,
        .driver         = {
                .name           = "scc",
        },
index 6f0db310cf69e90b82e7ae73262d15095d4697b5..a433a3c6e1ae9bbaff4e72127d3cc8875fcb5b61 100644 (file)
@@ -1846,7 +1846,7 @@ static const struct of_device_id qcom_geni_serial_match_table[] = {
 MODULE_DEVICE_TABLE(of, qcom_geni_serial_match_table);
 
 static struct platform_driver qcom_geni_serial_platform_driver = {
-       .remove_new = qcom_geni_serial_remove,
+       .remove = qcom_geni_serial_remove,
        .probe = qcom_geni_serial_probe,
        .driver = {
                .name = "qcom_geni_serial",
index 663e35e424bdb08b73d85a9ddebadf9b84ff0c6e..87fa30d68687848a1c9d0d6304bcab09f6a77e65 100644 (file)
@@ -777,7 +777,7 @@ static void rda_uart_remove(struct platform_device *pdev)
 
 static struct platform_driver rda_uart_platform_driver = {
        .probe = rda_uart_probe,
-       .remove_new = rda_uart_remove,
+       .remove = rda_uart_remove,
        .driver = {
                .name = "rda-uart",
                .of_match_table = rda_uart_dt_matches,
index 79c794fa654512ae6a912c900cbbd87ef9671fe2..3c34027687d21c669eea10f169ece8b1ab7c4467 100644 (file)
@@ -880,7 +880,7 @@ static void sa1100_serial_remove(struct platform_device *pdev)
 
 static struct platform_driver sa11x0_serial_driver = {
        .probe          = sa1100_serial_probe,
-       .remove_new     = sa1100_serial_remove,
+       .remove         = sa1100_serial_remove,
        .suspend        = sa1100_serial_suspend,
        .resume         = sa1100_serial_resume,
        .driver         = {
index 0d184ee2f9cec0156dd3ef11e489118711c9f37a..405b1a27a4fdefb7c3af307bd57663a2ad49bf61 100644 (file)
@@ -2653,7 +2653,7 @@ MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
 
 static struct platform_driver samsung_serial_driver = {
        .probe          = s3c24xx_serial_probe,
-       .remove_new     = s3c24xx_serial_remove,
+       .remove         = s3c24xx_serial_remove,
        .id_table       = s3c24xx_serial_driver_ids,
        .driver         = {
                .name   = "samsung-uart",
index 6d1d142fd2161f4ab79a51be9125907f76461858..4c851dae6624f87afb4d86d62e3ec2d38c4c8ee7 100644 (file)
@@ -1052,7 +1052,7 @@ static struct platform_driver sccnxp_uart_driver = {
                .name   = SCCNXP_NAME,
        },
        .probe          = sccnxp_probe,
-       .remove_new     = sccnxp_remove,
+       .remove         = sccnxp_remove,
        .id_table       = sccnxp_id_table,
 };
 module_platform_driver(sccnxp_uart_driver);
index 1183ca54ab9217559a88ee075a5f3c7bf94b101c..8004fc00fb9cd57796d7f3512e24d7737efd44d8 100644 (file)
@@ -1648,7 +1648,7 @@ static const struct dev_pm_ops tegra_uart_pm_ops = {
 
 static struct platform_driver tegra_uart_platform_driver = {
        .probe          = tegra_uart_probe,
-       .remove_new     = tegra_uart_remove,
+       .remove         = tegra_uart_remove,
        .driver         = {
                .name   = "serial-tegra",
                .of_match_table = tegra_uart_of_match,
index abba397229581851d05cd09ab393865f4509204d..436a559234dfe7539da2b4793578af642ce08f82 100644 (file)
@@ -1097,7 +1097,7 @@ static int serial_txx9_resume(struct platform_device *dev)
 
 static struct platform_driver serial_txx9_plat_driver = {
        .probe          = serial_txx9_probe,
-       .remove_new     = serial_txx9_remove,
+       .remove         = serial_txx9_remove,
 #ifdef CONFIG_PM
        .suspend        = serial_txx9_suspend,
        .resume         = serial_txx9_resume,
index b80e9a528e17ff8b07c39d1688316dd3de1a8c87..df523c74442308360c1b411b27fea32f74c48f77 100644 (file)
@@ -3505,7 +3505,7 @@ static SIMPLE_DEV_PM_OPS(sci_dev_pm_ops, sci_suspend, sci_resume);
 
 static struct platform_driver sci_driver = {
        .probe          = sci_probe,
-       .remove_new     = sci_remove,
+       .remove         = sci_remove,
        .driver         = {
                .name   = "sh-sci",
                .pm     = &sci_dev_pm_ops,
index cbfce65c9d221abb1dd589f40e4b6658867803c6..5904a2d4cefa71d371c3d6a07c66cae9140d0353 100644 (file)
@@ -1040,7 +1040,7 @@ MODULE_DEVICE_TABLE(of, sifive_serial_of_match);
 
 static struct platform_driver sifive_serial_platform_driver = {
        .probe          = sifive_serial_probe,
-       .remove_new     = sifive_serial_remove,
+       .remove         = sifive_serial_remove,
        .driver         = {
                .name   = SIFIVE_SERIAL_NAME,
                .pm = pm_sleep_ptr(&sifive_uart_pm_ops),
index 3fc54cc02a1fc5242d06f8f9392966dd847208f8..397a284e3fdce233f9b3dac07b18cf511674dfd1 100644 (file)
@@ -1255,7 +1255,7 @@ MODULE_DEVICE_TABLE(of, serial_ids);
 
 static struct platform_driver sprd_platform_driver = {
        .probe          = sprd_probe,
-       .remove_new     = sprd_remove,
+       .remove         = sprd_remove,
        .driver         = {
                .name   = "sprd_serial",
                .of_match_table = serial_ids,
index 8aea59f8ca13dac6fd7ee927dea1c59a66d19abe..6ed9a327702bb5a7c3830f29db61429c80e8bf07 100644 (file)
@@ -934,7 +934,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(asc_serial_pm_ops, asc_serial_suspend,
 
 static struct platform_driver asc_serial_driver = {
        .probe          = asc_serial_probe,
-       .remove_new     = asc_serial_remove,
+       .remove         = asc_serial_remove,
        .driver = {
                .name   = DRIVER_NAME,
                .pm     = pm_sleep_ptr(&asc_serial_pm_ops),
index e1e7bc04c579208dbb989c4209db6c7ed0ad8851..7dc254546075120c72d561775283ace6c57eec42 100644 (file)
@@ -2188,7 +2188,7 @@ static const struct dev_pm_ops stm32_serial_pm_ops = {
 
 static struct platform_driver stm32_serial_driver = {
        .probe          = stm32_usart_serial_probe,
-       .remove_new     = stm32_usart_serial_remove,
+       .remove         = stm32_usart_serial_remove,
        .driver = {
                .name   = DRIVER_NAME,
                .pm     = &stm32_serial_pm_ops,
index 7f60679fdde1971b3af905dc72237a076e7f63ab..2b3ec65d595d8f8d6b30cfd2b1cc43c0a43b975d 100644 (file)
@@ -633,7 +633,7 @@ static struct platform_driver hv_driver = {
                .of_match_table = hv_match,
        },
        .probe          = hv_probe,
-       .remove_new     = hv_remove,
+       .remove         = hv_remove,
 };
 
 static int __init sunhv_init(void)
index abf7c449308d9f32b7106fd2bc276550578179a7..38deee571b0d08e356dfce92e57b7d3ed9a475f2 100644 (file)
@@ -697,7 +697,7 @@ MODULE_DEVICE_TABLE(of, sp_uart_of_match);
 
 static struct platform_driver sunplus_uart_platform_driver = {
        .probe          = sunplus_uart_probe,
-       .remove_new     = sunplus_uart_remove,
+       .remove         = sunplus_uart_remove,
        .driver = {
                .name   = "sunplus_uart",
                .of_match_table = sp_uart_of_match,
index 1acbe2fba746f948c6d913799bd631c00e8919f7..df906ccf2e8a4f39c2f4dea8c3696eb632a060ca 100644 (file)
@@ -1100,7 +1100,7 @@ static struct platform_driver sab_driver = {
                .of_match_table = sab_match,
        },
        .probe          = sab_probe,
-       .remove_new     = sab_remove,
+       .remove         = sab_remove,
 };
 
 static int __init sunsab_init(void)
index 0f463da5e7ce6830c32e047a529c1a475ace0bae..7f0fef07e141d092bfe49a7b9243ec468a476cb1 100644 (file)
@@ -1549,7 +1549,7 @@ static struct platform_driver su_driver = {
                .of_match_table = su_match,
        },
        .probe          = su_probe,
-       .remove_new     = su_remove,
+       .remove         = su_remove,
 };
 
 static int __init sunsu_init(void)
index 71758ad4241c17681c144f45fbc02e1e1959412f..0551c24c06f5faa019421d9e154a273e61737e61 100644 (file)
@@ -1538,7 +1538,7 @@ static struct platform_driver zs_driver = {
                .of_match_table = zs_match,
        },
        .probe          = zs_probe,
-       .remove_new     = zs_remove,
+       .remove         = zs_remove,
 };
 
 static int __init sunzilog_init(void)
index 21ca5fcadf4997c8fce7e952ba0260755c3dbb41..7033dbfe8ba1ec841f773d7063a3d0934b085aca 100644 (file)
@@ -293,7 +293,7 @@ static struct platform_driver tegra_tcu_driver = {
                .of_match_table = tegra_tcu_match,
        },
        .probe = tegra_tcu_probe,
-       .remove_new = tegra_tcu_remove,
+       .remove = tegra_tcu_remove,
 };
 module_platform_driver(tegra_tcu_driver);
 
index 43fa0938b5e33e3b544e88564d60583431e2909b..6fa93c3872a727e014bba6b945889e6018345880 100644 (file)
@@ -485,7 +485,7 @@ static struct platform_driver timbuart_platform_driver = {
                .name   = "timb-uart",
        },
        .probe          = timbuart_probe,
-       .remove_new     = timbuart_remove,
+       .remove         = timbuart_remove,
 };
 
 module_platform_driver(timbuart_platform_driver);
index 68357ac8ffe3ca58e1aaba0eb7f509ebb8baeaef..a41e7fc373b7c61f4617d466a7db2024521023ce 100644 (file)
@@ -915,7 +915,7 @@ MODULE_ALIAS("platform:uartlite");
 
 static struct platform_driver ulite_platform_driver = {
        .probe = ulite_probe,
-       .remove_new = ulite_remove,
+       .remove = ulite_remove,
        .driver = {
                .name  = "uartlite",
                .of_match_table = of_match_ptr(ulite_of_match),
index 53bb8c5ef499ecd0e3cbfd781a6ca416b9350ea5..6e27843437ab0d860516c690c3a93b7504af9c39 100644 (file)
@@ -1484,7 +1484,7 @@ static struct platform_driver ucc_uart_of_driver = {
                .of_match_table    = ucc_uart_match,
        },
        .probe          = ucc_uart_probe,
-       .remove_new     = ucc_uart_remove,
+       .remove         = ucc_uart_remove,
 };
 
 static int __init ucc_uart_init(void)
index 777392914819d77d03b08a50010d4fb54cf3583c..beb151be4d328731aa37589288803cafbaf761db 100644 (file)
@@ -1903,7 +1903,7 @@ static void cdns_uart_remove(struct platform_device *pdev)
 
 static struct platform_driver cdns_uart_platform_driver = {
        .probe   = cdns_uart_probe,
-       .remove_new = cdns_uart_remove,
+       .remove  = cdns_uart_remove,
        .driver  = {
                .name = CDNS_UART_NAME,
                .of_match_table = cdns_uart_of_match,