]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 7 Oct 2024 20:58:03 +0000 (22:58 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 10 Nov 2024 21:58:28 +0000 (22:58 +0100)
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>
47 files changed:
drivers/rtc/rtc-88pm80x.c
drivers/rtc/rtc-88pm860x.c
drivers/rtc/rtc-ab8500.c
drivers/rtc/rtc-ac100.c
drivers/rtc/rtc-asm9260.c
drivers/rtc/rtc-at91rm9200.c
drivers/rtc/rtc-at91sam9.c
drivers/rtc/rtc-brcmstb-waketimer.c
drivers/rtc/rtc-cadence.c
drivers/rtc/rtc-cmos.c
drivers/rtc/rtc-cros-ec.c
drivers/rtc/rtc-ds1685.c
drivers/rtc/rtc-ftrtc010.c
drivers/rtc/rtc-hid-sensor-time.c
drivers/rtc/rtc-imxdi.c
drivers/rtc/rtc-loongson.c
drivers/rtc/rtc-lpc24xx.c
drivers/rtc/rtc-max77686.c
drivers/rtc/rtc-mc13xxx.c
drivers/rtc/rtc-mpc5121.c
drivers/rtc/rtc-mpfs.c
drivers/rtc/rtc-mt7622.c
drivers/rtc/rtc-mv.c
drivers/rtc/rtc-mxc_v2.c
drivers/rtc/rtc-omap.c
drivers/rtc/rtc-palmas.c
drivers/rtc/rtc-pcf50633.c
drivers/rtc/rtc-pic32.c
drivers/rtc/rtc-pm8xxx.c
drivers/rtc/rtc-pxa.c
drivers/rtc/rtc-rc5t583.c
drivers/rtc/rtc-rtd119x.c
drivers/rtc/rtc-rzn1.c
drivers/rtc/rtc-s3c.c
drivers/rtc/rtc-sa1100.c
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-spear.c
drivers/rtc/rtc-stm32.c
drivers/rtc/rtc-stmp3xxx.c
drivers/rtc/rtc-sunplus.c
drivers/rtc/rtc-tegra.c
drivers/rtc/rtc-tps6586x.c
drivers/rtc/rtc-twl.c
drivers/rtc/rtc-vt8500.c
drivers/rtc/rtc-wm8350.c
drivers/rtc/rtc-xgene.c
drivers/rtc/rtc-zynqmp.c

index f40cc06b097973a0116b53887798110cdcb81bed..5c39cf252392de52d86015b75d44193a7f1e2a2c 100644 (file)
@@ -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);
index 0f124ed5b3e56b8c63ebd11de2fdf50195250781..814230d6184271fba205d96489b5e73016d8ba15 100644 (file)
@@ -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);
index 75bb2ac9005c26c8737ce87ca89b8235e5d1f52c..2dcda96f4a8ef727514c751322b84d8d2b382b75 100644 (file)
@@ -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,
 };
 
index fa642bba3cee008c9d4fe4abe2cc37aebe2eb41c..33626311fa781b5ce90dcc472f948dc933bbc897 100644 (file)
@@ -628,7 +628,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),
index a83b47e0d8f5328e3231d81bbe58131413ab304d..705470ae84280f8ba3b7ed5c06a778857799e8a1 100644 (file)
@@ -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,
index c16fe711a0d94f8abfe301f0b5d74901d182bed0..9b3898b8de7cf79cb0ec3e523f851b292b679290 100644 (file)
@@ -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",
index 993c0878fb66063cc72522046a5d09913dd6651f..15b21da2788f63e48876033d1e57d33da629c5b8 100644 (file)
@@ -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",
index 1a65a4e0dc00350bcf86812d46f811fbc912956f..b108e75042eb72541c41aee17181f2b1e0b81139 100644 (file)
@@ -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,
index 4ca60b51983650f32c2edc4fb7ded99a7b51400a..bf2a9a1fdea7443b38e61be046ff8daf1f23303e 100644 (file)
@@ -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);
 
index 5849d2970bba454eb0caa1eee62077209ace9bf6..78f2ce12c75a77172c50956f32572e22078079fa 100644 (file)
@@ -1527,7 +1527,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,
index f57462c7b2c64f74a05c6d5644fd43e7d4a0c7bf..60a48c3ba3ca50211a39aa5c86018bf557aadcd8 100644 (file)
@@ -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,
index 04dbf35cf3b706e2ad8776a2347cfe4a964fcc12..38e25f63597ab7ca26aefa1a7d8bcb39272150c9 100644 (file)
@@ -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);
 /* ----------------------------------------------------------------------- */
index 8bfe7378f6533fdbf64725be78a77ad60b69e692..cb4a5d101f537e20a685bb022e6f6516b0df8271 100644 (file)
@@ -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);
index b81cea505ee93fdc1eba7c1cfc8108f1dc5acc9e..e30f80dc931995e1407a738ae300fa78cbba661c 100644 (file)
@@ -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);
 
index 284011c419db9722634d51f50eeb5979b6665ec1..ca4a0af95e8c5a21dd645fa5eba403381be52ea4 100644 (file)
@@ -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);
index e8ffc1ab90b02fbf6a383efaa79ea57cee4ae67b..8d713e563d7c0a70dbda435b65ddd4133c9123ab 100644 (file)
@@ -381,7 +381,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,
index df17c48ff086ee7228ce157f8bf54a356e8ad006..2dcdc77ff646c9d5578a8bb125cad9dd1d4cf1bb 100644 (file)
@@ -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,
index 35a6021d9ba4c2f940f2027ced9b4e429b1f9720..a8f4b645c09d2422ad04c3ff3196fd20cbb05bf1 100644 (file)
@@ -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,
 };
 
index 763a42f422eb27b3fe171ba4c38243da7d3ff6e4..e7b87130e6248d20eacb1ddf1887705a80b163c9 100644 (file)
@@ -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,
        },
index 71eafe4fbc72bd0fff7404d537492eac75a0cdc2..6003281316031c2c1d1a63f7bdb05d960c1e741c 100644 (file)
@@ -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);
index 5b96a6d39210cff48c09ece297a80ccf5a208922..3892b0f9917fa7bc4f732cfe2c2b2f548ba7429f 100644 (file)
@@ -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,
index 094c649fc137f20929b356bf2209c57fdd842c99..4cf0cbb31a313d48e13b04abf3b441481bf8a59d 100644 (file)
@@ -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,
index db31da56bfa74d0851f51a08d7b9175dba2468a4..51029c53624418d6c1c78f340b36060fd2660a68 100644 (file)
@@ -308,7 +308,7 @@ MODULE_DEVICE_TABLE(of, rtc_mv_of_match_table);
  * 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),
index 6934bce4b29fd56239fee3055ac9dbacfa012c10..13c041bb79f160a1b348cb4a5ba124cc467aa616 100644 (file)
@@ -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);
index e6b2a9c15b542eeed37a80885ea967e87e3fa30e..c123778e2d9bcc47bde3eb00a0b80adff790a501 100644 (file)
@@ -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",
index 6971e47c6021eea935c2a8a811e03e6ec8b95802..7256a88b490c98bf501e67ef1257c7b3418618ca 100644 (file)
@@ -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,
index 23edd11aa40c5529aa1d4b69f06ad9946f3b31ad..c019c4d91c7d77cda82add8810030965e44262f4 100644 (file)
@@ -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);
index 4f85e0c3d75729f2d54ed062a587e516d421278f..bed3c27e665f32d0cc5becbaf2ad489bff9c74c2 100644 (file)
@@ -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),
index f6b779c12ca724177731fa1bee96f5f7696f6bb6..3ec78706fd72ccdf6b2b02fbeb6820b4d19dd2ce 100644 (file)
@@ -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,
index cdb39fc4cab52c7349f010632f0a88e2713e9c7f..34d8545c8e155a4496a2ef47bfa32109581d8aa3 100644 (file)
@@ -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),
index 115c46f862f95bfa04d189473a864672df18ddd1..eecb49bab56ad52f9cdd9eeef35c20881019abab 100644 (file)
@@ -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,
index 29662dfd56fef9cb5f47e6427d227daccaf4b79b..85a138db81d78a132fc754cb8448b8b94c61e8c2 100644 (file)
@@ -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,
index 56ebbd4d04814715c61ae1144220446d1fa403d7..a8316956f7d72805dc4bfebc5a82cf0e89401f54 100644 (file)
@@ -405,7 +405,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,
index 282238818f63bd7f07b79dd834468f9dc44a72cf..c0ac3bdb2f427df3ac218cecce3f3b61562d6d71 100644 (file)
@@ -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,
index 0b2cfa8ca05bfa56cd90ee9e54596c98d498fba6..13799b1abca1aeaad8c45d10c2de4c25566311a7 100644 (file)
@@ -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,
index 27a191fa3704c6a3129fda18decfc50498ab693b..a5df521876ba0a218b58c00dc0e25f06a2372316 100644 (file)
@@ -678,7 +678,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);
index 1df5c7e94198054e9c34d1e7d0525dbcc6d356f7..26eed927f8b312370fe448c0e37cef48e6406912 100644 (file)
@@ -475,7 +475,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",
index 3e4f2ee22b0bc81e24ba0029fafd8be5a0b2049b..9f1a019ec8afa57245c6d40d378ec50fdcd64deb 100644 (file)
@@ -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,
index 7566d0a44af82aab2647a644a94464511ea42aea..7afcd14aeee56251dd93e7c0ca88c0f7e0b4fc02 100644 (file)
@@ -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,
index 20c7e97c2fc81523356dd0cb23d2fde02cd48be0..9b1ce0e8ba27e6f4c78925b46bc13363974632fa 100644 (file)
@@ -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,
index 441e0a66b215b796db12357691f2205fd695f124..79a3102c83549ab38a006247d16a3d20acb47f60 100644 (file)
@@ -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",
index 20faf08c254cc04c48c70a85101330616ef79133..e796729fc817c1bd99f4c70b714a346fc1a795d2 100644 (file)
@@ -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);
 
index 4e24c12004f1651a03b9073c2743637efa2f7537..794429182b34802c1e5ca9752db45429733e202d 100644 (file)
@@ -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",
index ccfa76513a2ca8fb4b6d36facb122a1a83eac300..c8b568498016f22d1a8576d2c66daffb2f21ce2f 100644 (file)
@@ -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,
index 3c773cff2b3930775eba6b3604855a88f34d079d..6797eb4d2e493eb124a62a0239a7d1990c446f19 100644 (file)
@@ -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,
index f78efc9760c0e9c7ae5ef4c6526365b9ea5f8599..0813ea1a03c273b191498cea2094d16dd31be726 100644 (file)
@@ -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,
index 08ed171bdab43a832c09abc1ed1edcdbac99615c..af1abb69d1e324c2eef89e95caac6847091a94a4 100644 (file)
@@ -382,7 +382,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,