| From a6d8a40f1fed3ebe5dd113c1d6a4dad60ae5d4cb Mon Sep 17 00:00:00 2001 |
| From: Sasha Levin <sashal@kernel.org> |
| Date: Mon, 7 Oct 2024 22:58:03 +0200 |
| Subject: rtc: Switch back to struct platform_driver::remove() |
| MIME-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| From: Uwe Kleine-König <u.kleine-koenig@baylibre.com> |
| |
| [ Upstream commit e5eab1aeae765c30bd2ef50156dc9698c239ad31 ] |
| |
| 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/rtc 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-6-u.kleine-koenig@baylibre.com |
| Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> |
| Stable-dep-of: fcf0b58e976e ("rtc: ac100: Fix clock provider use-after-free on probe failure") |
| Signed-off-by: Sasha Levin <sashal@kernel.org> |
| --- |
| drivers/rtc/rtc-88pm80x.c | 2 +- |
| drivers/rtc/rtc-88pm860x.c | 2 +- |
| drivers/rtc/rtc-ab8500.c | 2 +- |
| drivers/rtc/rtc-ac100.c | 2 +- |
| drivers/rtc/rtc-asm9260.c | 2 +- |
| drivers/rtc/rtc-at91rm9200.c | 2 +- |
| drivers/rtc/rtc-at91sam9.c | 2 +- |
| drivers/rtc/rtc-brcmstb-waketimer.c | 2 +- |
| drivers/rtc/rtc-cadence.c | 2 +- |
| drivers/rtc/rtc-cmos.c | 2 +- |
| drivers/rtc/rtc-cros-ec.c | 2 +- |
| drivers/rtc/rtc-ds1685.c | 2 +- |
| drivers/rtc/rtc-ftrtc010.c | 2 +- |
| drivers/rtc/rtc-hid-sensor-time.c | 2 +- |
| drivers/rtc/rtc-imxdi.c | 2 +- |
| drivers/rtc/rtc-loongson.c | 2 +- |
| drivers/rtc/rtc-lpc24xx.c | 2 +- |
| drivers/rtc/rtc-max77686.c | 2 +- |
| drivers/rtc/rtc-mc13xxx.c | 2 +- |
| drivers/rtc/rtc-mpc5121.c | 2 +- |
| drivers/rtc/rtc-mpfs.c | 2 +- |
| drivers/rtc/rtc-mt7622.c | 2 +- |
| drivers/rtc/rtc-mv.c | 2 +- |
| drivers/rtc/rtc-mxc_v2.c | 2 +- |
| drivers/rtc/rtc-omap.c | 2 +- |
| drivers/rtc/rtc-palmas.c | 2 +- |
| drivers/rtc/rtc-pcf50633.c | 2 +- |
| drivers/rtc/rtc-pic32.c | 2 +- |
| drivers/rtc/rtc-pm8xxx.c | 2 +- |
| drivers/rtc/rtc-pxa.c | 2 +- |
| drivers/rtc/rtc-rc5t583.c | 2 +- |
| drivers/rtc/rtc-rtd119x.c | 2 +- |
| drivers/rtc/rtc-rzn1.c | 2 +- |
| drivers/rtc/rtc-s3c.c | 2 +- |
| drivers/rtc/rtc-sa1100.c | 2 +- |
| drivers/rtc/rtc-sh.c | 2 +- |
| drivers/rtc/rtc-spear.c | 2 +- |
| drivers/rtc/rtc-stm32.c | 2 +- |
| drivers/rtc/rtc-stmp3xxx.c | 2 +- |
| drivers/rtc/rtc-sunplus.c | 2 +- |
| drivers/rtc/rtc-tegra.c | 2 +- |
| drivers/rtc/rtc-tps6586x.c | 2 +- |
| drivers/rtc/rtc-twl.c | 2 +- |
| drivers/rtc/rtc-vt8500.c | 2 +- |
| drivers/rtc/rtc-wm8350.c | 2 +- |
| drivers/rtc/rtc-xgene.c | 2 +- |
| drivers/rtc/rtc-zynqmp.c | 2 +- |
| 47 files changed, 47 insertions(+), 47 deletions(-) |
| |
| diff --git a/drivers/rtc/rtc-88pm80x.c b/drivers/rtc/rtc-88pm80x.c |
| index f40cc06b09797..5c39cf252392d 100644 |
| --- a/drivers/rtc/rtc-88pm80x.c |
| +++ b/drivers/rtc/rtc-88pm80x.c |
| @@ -329,7 +329,7 @@ static struct platform_driver pm80x_rtc_driver = { |
| .pm = &pm80x_rtc_pm_ops, |
| }, |
| .probe = pm80x_rtc_probe, |
| - .remove_new = pm80x_rtc_remove, |
| + .remove = pm80x_rtc_remove, |
| }; |
| |
| module_platform_driver(pm80x_rtc_driver); |
| diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c |
| index 0f124ed5b3e56..814230d618427 100644 |
| --- a/drivers/rtc/rtc-88pm860x.c |
| +++ b/drivers/rtc/rtc-88pm860x.c |
| @@ -371,7 +371,7 @@ static struct platform_driver pm860x_rtc_driver = { |
| .pm = &pm860x_rtc_pm_ops, |
| }, |
| .probe = pm860x_rtc_probe, |
| - .remove_new = pm860x_rtc_remove, |
| + .remove = pm860x_rtc_remove, |
| }; |
| |
| module_platform_driver(pm860x_rtc_driver); |
| diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c |
| index 75bb2ac9005c2..2dcda96f4a8ef 100644 |
| --- a/drivers/rtc/rtc-ab8500.c |
| +++ b/drivers/rtc/rtc-ab8500.c |
| @@ -403,7 +403,7 @@ static struct platform_driver ab8500_rtc_driver = { |
| .name = "ab8500-rtc", |
| }, |
| .probe = ab8500_rtc_probe, |
| - .remove_new = ab8500_rtc_remove, |
| + .remove = ab8500_rtc_remove, |
| .id_table = ab85xx_rtc_ids, |
| }; |
| |
| diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c |
| index 90338dba457a4..9917cd67f4c6d 100644 |
| --- a/drivers/rtc/rtc-ac100.c |
| +++ b/drivers/rtc/rtc-ac100.c |
| @@ -629,7 +629,7 @@ MODULE_DEVICE_TABLE(of, ac100_rtc_match); |
| |
| static struct platform_driver ac100_rtc_driver = { |
| .probe = ac100_rtc_probe, |
| - .remove_new = ac100_rtc_remove, |
| + .remove = ac100_rtc_remove, |
| .driver = { |
| .name = "ac100-rtc", |
| .of_match_table = of_match_ptr(ac100_rtc_match), |
| diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c |
| index a83b47e0d8f53..705470ae84280 100644 |
| --- a/drivers/rtc/rtc-asm9260.c |
| +++ b/drivers/rtc/rtc-asm9260.c |
| @@ -325,7 +325,7 @@ MODULE_DEVICE_TABLE(of, asm9260_dt_ids); |
| |
| static struct platform_driver asm9260_rtc_driver = { |
| .probe = asm9260_rtc_probe, |
| - .remove_new = asm9260_rtc_remove, |
| + .remove = asm9260_rtc_remove, |
| .driver = { |
| .name = "asm9260-rtc", |
| .of_match_table = asm9260_dt_ids, |
| diff --git a/drivers/rtc/rtc-at91rm9200.c b/drivers/rtc/rtc-at91rm9200.c |
| index c16fe711a0d94..9b3898b8de7cf 100644 |
| --- a/drivers/rtc/rtc-at91rm9200.c |
| +++ b/drivers/rtc/rtc-at91rm9200.c |
| @@ -640,7 +640,7 @@ static SIMPLE_DEV_PM_OPS(at91_rtc_pm_ops, at91_rtc_suspend, at91_rtc_resume); |
| * triggering a section mismatch warning. |
| */ |
| static struct platform_driver at91_rtc_driver __refdata = { |
| - .remove_new = __exit_p(at91_rtc_remove), |
| + .remove = __exit_p(at91_rtc_remove), |
| .shutdown = at91_rtc_shutdown, |
| .driver = { |
| .name = "at91_rtc", |
| diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c |
| index 993c0878fb660..15b21da2788f6 100644 |
| --- a/drivers/rtc/rtc-at91sam9.c |
| +++ b/drivers/rtc/rtc-at91sam9.c |
| @@ -530,7 +530,7 @@ MODULE_DEVICE_TABLE(of, at91_rtc_dt_ids); |
| |
| static struct platform_driver at91_rtc_driver = { |
| .probe = at91_rtc_probe, |
| - .remove_new = at91_rtc_remove, |
| + .remove = at91_rtc_remove, |
| .shutdown = at91_rtc_shutdown, |
| .driver = { |
| .name = "rtc-at91sam9", |
| diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c |
| index 1a65a4e0dc003..b108e75042eb7 100644 |
| --- a/drivers/rtc/rtc-brcmstb-waketimer.c |
| +++ b/drivers/rtc/rtc-brcmstb-waketimer.c |
| @@ -417,7 +417,7 @@ static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = { |
| |
| static struct platform_driver brcmstb_waketmr_driver = { |
| .probe = brcmstb_waketmr_probe, |
| - .remove_new = brcmstb_waketmr_remove, |
| + .remove = brcmstb_waketmr_remove, |
| .driver = { |
| .name = "brcmstb-waketimer", |
| .pm = &brcmstb_waketmr_pm_ops, |
| diff --git a/drivers/rtc/rtc-cadence.c b/drivers/rtc/rtc-cadence.c |
| index 4ca60b5198365..bf2a9a1fdea74 100644 |
| --- a/drivers/rtc/rtc-cadence.c |
| +++ b/drivers/rtc/rtc-cadence.c |
| @@ -402,7 +402,7 @@ static struct platform_driver cdns_rtc_driver = { |
| .pm = &cdns_rtc_pm_ops, |
| }, |
| .probe = cdns_rtc_probe, |
| - .remove_new = cdns_rtc_remove, |
| + .remove = cdns_rtc_remove, |
| }; |
| module_platform_driver(cdns_rtc_driver); |
| |
| diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c |
| index e06f3b9cab2c8..79ef0d8164788 100644 |
| --- a/drivers/rtc/rtc-cmos.c |
| +++ b/drivers/rtc/rtc-cmos.c |
| @@ -1535,7 +1535,7 @@ static void cmos_platform_shutdown(struct platform_device *pdev) |
| MODULE_ALIAS("platform:rtc_cmos"); |
| |
| static struct platform_driver cmos_platform_driver = { |
| - .remove_new = cmos_platform_remove, |
| + .remove = cmos_platform_remove, |
| .shutdown = cmos_platform_shutdown, |
| .driver = { |
| .name = driver_name, |
| diff --git a/drivers/rtc/rtc-cros-ec.c b/drivers/rtc/rtc-cros-ec.c |
| index f57462c7b2c64..60a48c3ba3ca5 100644 |
| --- a/drivers/rtc/rtc-cros-ec.c |
| +++ b/drivers/rtc/rtc-cros-ec.c |
| @@ -401,7 +401,7 @@ MODULE_DEVICE_TABLE(platform, cros_ec_rtc_id); |
| |
| static struct platform_driver cros_ec_rtc_driver = { |
| .probe = cros_ec_rtc_probe, |
| - .remove_new = cros_ec_rtc_remove, |
| + .remove = cros_ec_rtc_remove, |
| .driver = { |
| .name = DRV_NAME, |
| .pm = &cros_ec_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-ds1685.c b/drivers/rtc/rtc-ds1685.c |
| index 04dbf35cf3b70..38e25f63597ab 100644 |
| --- a/drivers/rtc/rtc-ds1685.c |
| +++ b/drivers/rtc/rtc-ds1685.c |
| @@ -1354,7 +1354,7 @@ static struct platform_driver ds1685_rtc_driver = { |
| .name = "rtc-ds1685", |
| }, |
| .probe = ds1685_rtc_probe, |
| - .remove_new = ds1685_rtc_remove, |
| + .remove = ds1685_rtc_remove, |
| }; |
| module_platform_driver(ds1685_rtc_driver); |
| /* ----------------------------------------------------------------------- */ |
| diff --git a/drivers/rtc/rtc-ftrtc010.c b/drivers/rtc/rtc-ftrtc010.c |
| index 8bfe7378f6533..cb4a5d101f537 100644 |
| --- a/drivers/rtc/rtc-ftrtc010.c |
| +++ b/drivers/rtc/rtc-ftrtc010.c |
| @@ -214,7 +214,7 @@ static struct platform_driver ftrtc010_rtc_driver = { |
| .of_match_table = ftrtc010_rtc_dt_match, |
| }, |
| .probe = ftrtc010_rtc_probe, |
| - .remove_new = ftrtc010_rtc_remove, |
| + .remove = ftrtc010_rtc_remove, |
| }; |
| |
| module_platform_driver_probe(ftrtc010_rtc_driver, ftrtc010_rtc_probe); |
| diff --git a/drivers/rtc/rtc-hid-sensor-time.c b/drivers/rtc/rtc-hid-sensor-time.c |
| index b81cea505ee93..e30f80dc93199 100644 |
| --- a/drivers/rtc/rtc-hid-sensor-time.c |
| +++ b/drivers/rtc/rtc-hid-sensor-time.c |
| @@ -319,7 +319,7 @@ static struct platform_driver hid_time_platform_driver = { |
| .name = KBUILD_MODNAME, |
| }, |
| .probe = hid_time_probe, |
| - .remove_new = hid_time_remove, |
| + .remove = hid_time_remove, |
| }; |
| module_platform_driver(hid_time_platform_driver); |
| |
| diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c |
| index 284011c419db9..ca4a0af95e8c5 100644 |
| --- a/drivers/rtc/rtc-imxdi.c |
| +++ b/drivers/rtc/rtc-imxdi.c |
| @@ -860,7 +860,7 @@ static struct platform_driver dryice_rtc_driver __refdata = { |
| .name = "imxdi_rtc", |
| .of_match_table = dryice_dt_ids, |
| }, |
| - .remove_new = __exit_p(dryice_rtc_remove), |
| + .remove = __exit_p(dryice_rtc_remove), |
| }; |
| |
| module_platform_driver_probe(dryice_rtc_driver, dryice_rtc_probe); |
| diff --git a/drivers/rtc/rtc-loongson.c b/drivers/rtc/rtc-loongson.c |
| index c9d5b91a6544d..7eba6350d8f7c 100644 |
| --- a/drivers/rtc/rtc-loongson.c |
| +++ b/drivers/rtc/rtc-loongson.c |
| @@ -392,7 +392,7 @@ MODULE_DEVICE_TABLE(acpi, loongson_rtc_acpi_match); |
| |
| static struct platform_driver loongson_rtc_driver = { |
| .probe = loongson_rtc_probe, |
| - .remove_new = loongson_rtc_remove, |
| + .remove = loongson_rtc_remove, |
| .driver = { |
| .name = "loongson-rtc", |
| .of_match_table = loongson_rtc_of_match, |
| diff --git a/drivers/rtc/rtc-lpc24xx.c b/drivers/rtc/rtc-lpc24xx.c |
| index df17c48ff086e..2dcdc77ff646c 100644 |
| --- a/drivers/rtc/rtc-lpc24xx.c |
| +++ b/drivers/rtc/rtc-lpc24xx.c |
| @@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, lpc24xx_rtc_match); |
| |
| static struct platform_driver lpc24xx_rtc_driver = { |
| .probe = lpc24xx_rtc_probe, |
| - .remove_new = lpc24xx_rtc_remove, |
| + .remove = lpc24xx_rtc_remove, |
| .driver = { |
| .name = "lpc24xx-rtc", |
| .of_match_table = lpc24xx_rtc_match, |
| diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c |
| index 35a6021d9ba4c..a8f4b645c09d2 100644 |
| --- a/drivers/rtc/rtc-max77686.c |
| +++ b/drivers/rtc/rtc-max77686.c |
| @@ -875,7 +875,7 @@ static struct platform_driver max77686_rtc_driver = { |
| .pm = &max77686_rtc_pm_ops, |
| }, |
| .probe = max77686_rtc_probe, |
| - .remove_new = max77686_rtc_remove, |
| + .remove = max77686_rtc_remove, |
| .id_table = rtc_id, |
| }; |
| |
| diff --git a/drivers/rtc/rtc-mc13xxx.c b/drivers/rtc/rtc-mc13xxx.c |
| index 763a42f422eb2..e7b87130e6248 100644 |
| --- a/drivers/rtc/rtc-mc13xxx.c |
| +++ b/drivers/rtc/rtc-mc13xxx.c |
| @@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(platform, mc13xxx_rtc_idtable); |
| |
| static struct platform_driver mc13xxx_rtc_driver = { |
| .id_table = mc13xxx_rtc_idtable, |
| - .remove_new = mc13xxx_rtc_remove, |
| + .remove = mc13xxx_rtc_remove, |
| .driver = { |
| .name = DRIVER_NAME, |
| }, |
| diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c |
| index 71eafe4fbc72b..6003281316031 100644 |
| --- a/drivers/rtc/rtc-mpc5121.c |
| +++ b/drivers/rtc/rtc-mpc5121.c |
| @@ -398,7 +398,7 @@ static struct platform_driver mpc5121_rtc_driver = { |
| .of_match_table = of_match_ptr(mpc5121_rtc_match), |
| }, |
| .probe = mpc5121_rtc_probe, |
| - .remove_new = mpc5121_rtc_remove, |
| + .remove = mpc5121_rtc_remove, |
| }; |
| |
| module_platform_driver(mpc5121_rtc_driver); |
| diff --git a/drivers/rtc/rtc-mpfs.c b/drivers/rtc/rtc-mpfs.c |
| index aa724a945c088..f4f1b845e23d6 100644 |
| --- a/drivers/rtc/rtc-mpfs.c |
| +++ b/drivers/rtc/rtc-mpfs.c |
| @@ -288,7 +288,7 @@ MODULE_DEVICE_TABLE(of, mpfs_rtc_of_match); |
| |
| static struct platform_driver mpfs_rtc_driver = { |
| .probe = mpfs_rtc_probe, |
| - .remove_new = mpfs_rtc_remove, |
| + .remove = mpfs_rtc_remove, |
| .driver = { |
| .name = "mpfs_rtc", |
| .of_match_table = mpfs_rtc_of_match, |
| diff --git a/drivers/rtc/rtc-mt7622.c b/drivers/rtc/rtc-mt7622.c |
| index 094c649fc137f..4cf0cbb31a313 100644 |
| --- a/drivers/rtc/rtc-mt7622.c |
| +++ b/drivers/rtc/rtc-mt7622.c |
| @@ -394,7 +394,7 @@ static SIMPLE_DEV_PM_OPS(mtk_rtc_pm_ops, mtk_rtc_suspend, mtk_rtc_resume); |
| |
| static struct platform_driver mtk_rtc_driver = { |
| .probe = mtk_rtc_probe, |
| - .remove_new = mtk_rtc_remove, |
| + .remove = mtk_rtc_remove, |
| .driver = { |
| .name = MTK_RTC_DEV, |
| .of_match_table = mtk_rtc_match, |
| diff --git a/drivers/rtc/rtc-mv.c b/drivers/rtc/rtc-mv.c |
| index 55fa937f9f709..285075ee8aae4 100644 |
| --- a/drivers/rtc/rtc-mv.c |
| +++ b/drivers/rtc/rtc-mv.c |
| @@ -330,7 +330,7 @@ static SIMPLE_DEV_PM_OPS(mv_rtc_pm_ops, mv_rtc_suspend, mv_rtc_resume); |
| * triggering a section mismatch warning. |
| */ |
| static struct platform_driver mv_rtc_driver __refdata = { |
| - .remove_new = __exit_p(mv_rtc_remove), |
| + .remove = __exit_p(mv_rtc_remove), |
| .driver = { |
| .name = "rtc-mv", |
| .of_match_table = of_match_ptr(rtc_mv_of_match_table), |
| diff --git a/drivers/rtc/rtc-mxc_v2.c b/drivers/rtc/rtc-mxc_v2.c |
| index 6934bce4b29fd..13c041bb79f16 100644 |
| --- a/drivers/rtc/rtc-mxc_v2.c |
| +++ b/drivers/rtc/rtc-mxc_v2.c |
| @@ -381,7 +381,7 @@ static struct platform_driver mxc_rtc_driver = { |
| .of_match_table = mxc_ids, |
| }, |
| .probe = mxc_rtc_probe, |
| - .remove_new = mxc_rtc_remove, |
| + .remove = mxc_rtc_remove, |
| }; |
| |
| module_platform_driver(mxc_rtc_driver); |
| diff --git a/drivers/rtc/rtc-omap.c b/drivers/rtc/rtc-omap.c |
| index e6b2a9c15b542..c123778e2d9bc 100644 |
| --- a/drivers/rtc/rtc-omap.c |
| +++ b/drivers/rtc/rtc-omap.c |
| @@ -1014,7 +1014,7 @@ static void omap_rtc_shutdown(struct platform_device *pdev) |
| |
| static struct platform_driver omap_rtc_driver = { |
| .probe = omap_rtc_probe, |
| - .remove_new = omap_rtc_remove, |
| + .remove = omap_rtc_remove, |
| .shutdown = omap_rtc_shutdown, |
| .driver = { |
| .name = "omap_rtc", |
| diff --git a/drivers/rtc/rtc-palmas.c b/drivers/rtc/rtc-palmas.c |
| index 6971e47c6021e..7256a88b490c9 100644 |
| --- a/drivers/rtc/rtc-palmas.c |
| +++ b/drivers/rtc/rtc-palmas.c |
| @@ -346,7 +346,7 @@ MODULE_DEVICE_TABLE(of, of_palmas_rtc_match); |
| |
| static struct platform_driver palmas_rtc_driver = { |
| .probe = palmas_rtc_probe, |
| - .remove_new = palmas_rtc_remove, |
| + .remove = palmas_rtc_remove, |
| .driver = { |
| .name = "palmas-rtc", |
| .pm = &palmas_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-pcf50633.c b/drivers/rtc/rtc-pcf50633.c |
| index 23edd11aa40c5..c019c4d91c7d7 100644 |
| --- a/drivers/rtc/rtc-pcf50633.c |
| +++ b/drivers/rtc/rtc-pcf50633.c |
| @@ -273,7 +273,7 @@ static struct platform_driver pcf50633_rtc_driver = { |
| .name = "pcf50633-rtc", |
| }, |
| .probe = pcf50633_rtc_probe, |
| - .remove_new = pcf50633_rtc_remove, |
| + .remove = pcf50633_rtc_remove, |
| }; |
| |
| module_platform_driver(pcf50633_rtc_driver); |
| diff --git a/drivers/rtc/rtc-pic32.c b/drivers/rtc/rtc-pic32.c |
| index 4f85e0c3d7572..bed3c27e665f3 100644 |
| --- a/drivers/rtc/rtc-pic32.c |
| +++ b/drivers/rtc/rtc-pic32.c |
| @@ -371,7 +371,7 @@ MODULE_DEVICE_TABLE(of, pic32_rtc_dt_ids); |
| |
| static struct platform_driver pic32_rtc_driver = { |
| .probe = pic32_rtc_probe, |
| - .remove_new = pic32_rtc_remove, |
| + .remove = pic32_rtc_remove, |
| .driver = { |
| .name = "pic32-rtc", |
| .of_match_table = of_match_ptr(pic32_rtc_dt_ids), |
| diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c |
| index c32fba550c8e0..2f32187ecc8d3 100644 |
| --- a/drivers/rtc/rtc-pm8xxx.c |
| +++ b/drivers/rtc/rtc-pm8xxx.c |
| @@ -537,7 +537,7 @@ static void pm8xxx_remove(struct platform_device *pdev) |
| |
| static struct platform_driver pm8xxx_rtc_driver = { |
| .probe = pm8xxx_rtc_probe, |
| - .remove_new = pm8xxx_remove, |
| + .remove = pm8xxx_remove, |
| .driver = { |
| .name = "rtc-pm8xxx", |
| .of_match_table = pm8xxx_id_table, |
| diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c |
| index cdb39fc4cab52..34d8545c8e155 100644 |
| --- a/drivers/rtc/rtc-pxa.c |
| +++ b/drivers/rtc/rtc-pxa.c |
| @@ -409,7 +409,7 @@ static SIMPLE_DEV_PM_OPS(pxa_rtc_pm_ops, pxa_rtc_suspend, pxa_rtc_resume); |
| * triggering a section mismatch warning. |
| */ |
| static struct platform_driver pxa_rtc_driver __refdata = { |
| - .remove_new = __exit_p(pxa_rtc_remove), |
| + .remove = __exit_p(pxa_rtc_remove), |
| .driver = { |
| .name = "pxa-rtc", |
| .of_match_table = of_match_ptr(pxa_rtc_dt_ids), |
| diff --git a/drivers/rtc/rtc-rc5t583.c b/drivers/rtc/rtc-rc5t583.c |
| index 115c46f862f95..eecb49bab56ad 100644 |
| --- a/drivers/rtc/rtc-rc5t583.c |
| +++ b/drivers/rtc/rtc-rc5t583.c |
| @@ -298,7 +298,7 @@ static SIMPLE_DEV_PM_OPS(rc5t583_rtc_pm_ops, rc5t583_rtc_suspend, |
| |
| static struct platform_driver rc5t583_rtc_driver = { |
| .probe = rc5t583_rtc_probe, |
| - .remove_new = rc5t583_rtc_remove, |
| + .remove = rc5t583_rtc_remove, |
| .driver = { |
| .name = "rtc-rc5t583", |
| .pm = &rc5t583_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-rtd119x.c b/drivers/rtc/rtc-rtd119x.c |
| index 29662dfd56fef..85a138db81d78 100644 |
| --- a/drivers/rtc/rtc-rtd119x.c |
| +++ b/drivers/rtc/rtc-rtd119x.c |
| @@ -228,7 +228,7 @@ static void rtd119x_rtc_remove(struct platform_device *pdev) |
| |
| static struct platform_driver rtd119x_rtc_driver = { |
| .probe = rtd119x_rtc_probe, |
| - .remove_new = rtd119x_rtc_remove, |
| + .remove = rtd119x_rtc_remove, |
| .driver = { |
| .name = "rtd1295-rtc", |
| .of_match_table = rtd119x_rtc_dt_ids, |
| diff --git a/drivers/rtc/rtc-rzn1.c b/drivers/rtc/rtc-rzn1.c |
| index 668935dbcefec..bdc041e9498a2 100644 |
| --- a/drivers/rtc/rtc-rzn1.c |
| +++ b/drivers/rtc/rtc-rzn1.c |
| @@ -413,7 +413,7 @@ MODULE_DEVICE_TABLE(of, rzn1_rtc_of_match); |
| |
| static struct platform_driver rzn1_rtc_driver = { |
| .probe = rzn1_rtc_probe, |
| - .remove_new = rzn1_rtc_remove, |
| + .remove = rzn1_rtc_remove, |
| .driver = { |
| .name = "rzn1-rtc", |
| .of_match_table = rzn1_rtc_of_match, |
| diff --git a/drivers/rtc/rtc-s3c.c b/drivers/rtc/rtc-s3c.c |
| index 282238818f63b..c0ac3bdb2f427 100644 |
| --- a/drivers/rtc/rtc-s3c.c |
| +++ b/drivers/rtc/rtc-s3c.c |
| @@ -597,7 +597,7 @@ MODULE_DEVICE_TABLE(of, s3c_rtc_dt_match); |
| |
| static struct platform_driver s3c_rtc_driver = { |
| .probe = s3c_rtc_probe, |
| - .remove_new = s3c_rtc_remove, |
| + .remove = s3c_rtc_remove, |
| .driver = { |
| .name = "s3c-rtc", |
| .pm = &s3c_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c |
| index 0b2cfa8ca05bf..13799b1abca1a 100644 |
| --- a/drivers/rtc/rtc-sa1100.c |
| +++ b/drivers/rtc/rtc-sa1100.c |
| @@ -341,7 +341,7 @@ MODULE_DEVICE_TABLE(of, sa1100_rtc_dt_ids); |
| |
| static struct platform_driver sa1100_rtc_driver = { |
| .probe = sa1100_rtc_probe, |
| - .remove_new = sa1100_rtc_remove, |
| + .remove = sa1100_rtc_remove, |
| .driver = { |
| .name = "sa1100-rtc", |
| .pm = &sa1100_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c |
| index e66c9c6fd3724..fdda458a97582 100644 |
| --- a/drivers/rtc/rtc-sh.c |
| +++ b/drivers/rtc/rtc-sh.c |
| @@ -684,7 +684,7 @@ static struct platform_driver sh_rtc_platform_driver __refdata = { |
| .pm = &sh_rtc_pm_ops, |
| .of_match_table = sh_rtc_of_match, |
| }, |
| - .remove_new = __exit_p(sh_rtc_remove), |
| + .remove = __exit_p(sh_rtc_remove), |
| }; |
| |
| module_platform_driver_probe(sh_rtc_platform_driver, sh_rtc_probe); |
| diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c |
| index 14b84d297f4b5..935ef66cd8ede 100644 |
| --- a/drivers/rtc/rtc-spear.c |
| +++ b/drivers/rtc/rtc-spear.c |
| @@ -476,7 +476,7 @@ MODULE_DEVICE_TABLE(of, spear_rtc_id_table); |
| |
| static struct platform_driver spear_rtc_driver = { |
| .probe = spear_rtc_probe, |
| - .remove_new = spear_rtc_remove, |
| + .remove = spear_rtc_remove, |
| .shutdown = spear_rtc_shutdown, |
| .driver = { |
| .name = "rtc-spear", |
| diff --git a/drivers/rtc/rtc-stm32.c b/drivers/rtc/rtc-stm32.c |
| index 3e4f2ee22b0bc..9f1a019ec8afa 100644 |
| --- a/drivers/rtc/rtc-stm32.c |
| +++ b/drivers/rtc/rtc-stm32.c |
| @@ -1287,7 +1287,7 @@ static const struct dev_pm_ops stm32_rtc_pm_ops = { |
| |
| static struct platform_driver stm32_rtc_driver = { |
| .probe = stm32_rtc_probe, |
| - .remove_new = stm32_rtc_remove, |
| + .remove = stm32_rtc_remove, |
| .driver = { |
| .name = DRIVER_NAME, |
| .pm = &stm32_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-stmp3xxx.c b/drivers/rtc/rtc-stmp3xxx.c |
| index 7566d0a44af82..7afcd14aeee56 100644 |
| --- a/drivers/rtc/rtc-stmp3xxx.c |
| +++ b/drivers/rtc/rtc-stmp3xxx.c |
| @@ -403,7 +403,7 @@ MODULE_DEVICE_TABLE(of, rtc_dt_ids); |
| |
| static struct platform_driver stmp3xxx_rtcdrv = { |
| .probe = stmp3xxx_rtc_probe, |
| - .remove_new = stmp3xxx_rtc_remove, |
| + .remove = stmp3xxx_rtc_remove, |
| .driver = { |
| .name = "stmp3xxx-rtc", |
| .pm = &stmp3xxx_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-sunplus.c b/drivers/rtc/rtc-sunplus.c |
| index 20c7e97c2fc81..9b1ce0e8ba27e 100644 |
| --- a/drivers/rtc/rtc-sunplus.c |
| +++ b/drivers/rtc/rtc-sunplus.c |
| @@ -344,7 +344,7 @@ static SIMPLE_DEV_PM_OPS(sp_rtc_pm_ops, sp_rtc_suspend, sp_rtc_resume); |
| |
| static struct platform_driver sp_rtc_driver = { |
| .probe = sp_rtc_probe, |
| - .remove_new = sp_rtc_remove, |
| + .remove = sp_rtc_remove, |
| .driver = { |
| .name = "sp7021-rtc", |
| .of_match_table = sp_rtc_of_match, |
| diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c |
| index 441e0a66b215b..79a3102c83549 100644 |
| --- a/drivers/rtc/rtc-tegra.c |
| +++ b/drivers/rtc/rtc-tegra.c |
| @@ -399,7 +399,7 @@ static void tegra_rtc_shutdown(struct platform_device *pdev) |
| |
| static struct platform_driver tegra_rtc_driver = { |
| .probe = tegra_rtc_probe, |
| - .remove_new = tegra_rtc_remove, |
| + .remove = tegra_rtc_remove, |
| .shutdown = tegra_rtc_shutdown, |
| .driver = { |
| .name = "tegra_rtc", |
| diff --git a/drivers/rtc/rtc-tps6586x.c b/drivers/rtc/rtc-tps6586x.c |
| index 20faf08c254cc..e796729fc817c 100644 |
| --- a/drivers/rtc/rtc-tps6586x.c |
| +++ b/drivers/rtc/rtc-tps6586x.c |
| @@ -317,7 +317,7 @@ static struct platform_driver tps6586x_rtc_driver = { |
| .pm = &tps6586x_pm_ops, |
| }, |
| .probe = tps6586x_rtc_probe, |
| - .remove_new = tps6586x_rtc_remove, |
| + .remove = tps6586x_rtc_remove, |
| }; |
| module_platform_driver(tps6586x_rtc_driver); |
| |
| diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c |
| index 4e24c12004f16..794429182b348 100644 |
| --- a/drivers/rtc/rtc-twl.c |
| +++ b/drivers/rtc/rtc-twl.c |
| @@ -673,7 +673,7 @@ MODULE_DEVICE_TABLE(of, twl_rtc_of_match); |
| |
| static struct platform_driver twl4030rtc_driver = { |
| .probe = twl_rtc_probe, |
| - .remove_new = twl_rtc_remove, |
| + .remove = twl_rtc_remove, |
| .shutdown = twl_rtc_shutdown, |
| .driver = { |
| .name = "twl_rtc", |
| diff --git a/drivers/rtc/rtc-vt8500.c b/drivers/rtc/rtc-vt8500.c |
| index ccfa76513a2ca..c8b568498016f 100644 |
| --- a/drivers/rtc/rtc-vt8500.c |
| +++ b/drivers/rtc/rtc-vt8500.c |
| @@ -251,7 +251,7 @@ MODULE_DEVICE_TABLE(of, wmt_dt_ids); |
| |
| static struct platform_driver vt8500_rtc_driver = { |
| .probe = vt8500_rtc_probe, |
| - .remove_new = vt8500_rtc_remove, |
| + .remove = vt8500_rtc_remove, |
| .driver = { |
| .name = "vt8500-rtc", |
| .of_match_table = wmt_dt_ids, |
| diff --git a/drivers/rtc/rtc-wm8350.c b/drivers/rtc/rtc-wm8350.c |
| index 3c773cff2b393..6797eb4d2e493 100644 |
| --- a/drivers/rtc/rtc-wm8350.c |
| +++ b/drivers/rtc/rtc-wm8350.c |
| @@ -459,7 +459,7 @@ static SIMPLE_DEV_PM_OPS(wm8350_rtc_pm_ops, wm8350_rtc_suspend, |
| |
| static struct platform_driver wm8350_rtc_driver = { |
| .probe = wm8350_rtc_probe, |
| - .remove_new = wm8350_rtc_remove, |
| + .remove = wm8350_rtc_remove, |
| .driver = { |
| .name = "wm8350-rtc", |
| .pm = &wm8350_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-xgene.c b/drivers/rtc/rtc-xgene.c |
| index f78efc9760c0e..0813ea1a03c27 100644 |
| --- a/drivers/rtc/rtc-xgene.c |
| +++ b/drivers/rtc/rtc-xgene.c |
| @@ -263,7 +263,7 @@ MODULE_DEVICE_TABLE(of, xgene_rtc_of_match); |
| |
| static struct platform_driver xgene_rtc_driver = { |
| .probe = xgene_rtc_probe, |
| - .remove_new = xgene_rtc_remove, |
| + .remove = xgene_rtc_remove, |
| .driver = { |
| .name = "xgene-rtc", |
| .pm = &xgene_rtc_pm_ops, |
| diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c |
| index e77fb1433401d..3239afab41461 100644 |
| --- a/drivers/rtc/rtc-zynqmp.c |
| +++ b/drivers/rtc/rtc-zynqmp.c |
| @@ -384,7 +384,7 @@ MODULE_DEVICE_TABLE(of, xlnx_rtc_of_match); |
| |
| static struct platform_driver xlnx_rtc_driver = { |
| .probe = xlnx_rtc_probe, |
| - .remove_new = xlnx_rtc_remove, |
| + .remove = xlnx_rtc_remove, |
| .driver = { |
| .name = KBUILD_MODNAME, |
| .pm = &xlnx_rtc_pm_ops, |
| -- |
| 2.53.0 |
| |