rtc: 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/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>
This commit is contained in:
Uwe Kleine-König 2024-10-07 22:58:03 +02:00 committed by Alexandre Belloni
parent d93f8ac23b
commit e5eab1aeae
47 changed files with 47 additions and 47 deletions

View File

@ -329,7 +329,7 @@ static struct platform_driver pm80x_rtc_driver = {
.pm = &pm80x_rtc_pm_ops, .pm = &pm80x_rtc_pm_ops,
}, },
.probe = pm80x_rtc_probe, .probe = pm80x_rtc_probe,
.remove_new = pm80x_rtc_remove, .remove = pm80x_rtc_remove,
}; };
module_platform_driver(pm80x_rtc_driver); module_platform_driver(pm80x_rtc_driver);

View File

@ -371,7 +371,7 @@ static struct platform_driver pm860x_rtc_driver = {
.pm = &pm860x_rtc_pm_ops, .pm = &pm860x_rtc_pm_ops,
}, },
.probe = pm860x_rtc_probe, .probe = pm860x_rtc_probe,
.remove_new = pm860x_rtc_remove, .remove = pm860x_rtc_remove,
}; };
module_platform_driver(pm860x_rtc_driver); module_platform_driver(pm860x_rtc_driver);

View File

@ -403,7 +403,7 @@ static struct platform_driver ab8500_rtc_driver = {
.name = "ab8500-rtc", .name = "ab8500-rtc",
}, },
.probe = ab8500_rtc_probe, .probe = ab8500_rtc_probe,
.remove_new = ab8500_rtc_remove, .remove = ab8500_rtc_remove,
.id_table = ab85xx_rtc_ids, .id_table = ab85xx_rtc_ids,
}; };

View File

@ -628,7 +628,7 @@ MODULE_DEVICE_TABLE(of, ac100_rtc_match);
static struct platform_driver ac100_rtc_driver = { static struct platform_driver ac100_rtc_driver = {
.probe = ac100_rtc_probe, .probe = ac100_rtc_probe,
.remove_new = ac100_rtc_remove, .remove = ac100_rtc_remove,
.driver = { .driver = {
.name = "ac100-rtc", .name = "ac100-rtc",
.of_match_table = of_match_ptr(ac100_rtc_match), .of_match_table = of_match_ptr(ac100_rtc_match),

View File

@ -325,7 +325,7 @@ MODULE_DEVICE_TABLE(of, asm9260_dt_ids);
static struct platform_driver asm9260_rtc_driver = { static struct platform_driver asm9260_rtc_driver = {
.probe = asm9260_rtc_probe, .probe = asm9260_rtc_probe,
.remove_new = asm9260_rtc_remove, .remove = asm9260_rtc_remove,
.driver = { .driver = {
.name = "asm9260-rtc", .name = "asm9260-rtc",
.of_match_table = asm9260_dt_ids, .of_match_table = asm9260_dt_ids,

View 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. * triggering a section mismatch warning.
*/ */
static struct platform_driver at91_rtc_driver __refdata = { 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, .shutdown = at91_rtc_shutdown,
.driver = { .driver = {
.name = "at91_rtc", .name = "at91_rtc",

View File

@ -530,7 +530,7 @@ MODULE_DEVICE_TABLE(of, at91_rtc_dt_ids);
static struct platform_driver at91_rtc_driver = { static struct platform_driver at91_rtc_driver = {
.probe = at91_rtc_probe, .probe = at91_rtc_probe,
.remove_new = at91_rtc_remove, .remove = at91_rtc_remove,
.shutdown = at91_rtc_shutdown, .shutdown = at91_rtc_shutdown,
.driver = { .driver = {
.name = "rtc-at91sam9", .name = "rtc-at91sam9",

View File

@ -417,7 +417,7 @@ static const __maybe_unused struct of_device_id brcmstb_waketmr_of_match[] = {
static struct platform_driver brcmstb_waketmr_driver = { static struct platform_driver brcmstb_waketmr_driver = {
.probe = brcmstb_waketmr_probe, .probe = brcmstb_waketmr_probe,
.remove_new = brcmstb_waketmr_remove, .remove = brcmstb_waketmr_remove,
.driver = { .driver = {
.name = "brcmstb-waketimer", .name = "brcmstb-waketimer",
.pm = &brcmstb_waketmr_pm_ops, .pm = &brcmstb_waketmr_pm_ops,

View File

@ -402,7 +402,7 @@ static struct platform_driver cdns_rtc_driver = {
.pm = &cdns_rtc_pm_ops, .pm = &cdns_rtc_pm_ops,
}, },
.probe = cdns_rtc_probe, .probe = cdns_rtc_probe,
.remove_new = cdns_rtc_remove, .remove = cdns_rtc_remove,
}; };
module_platform_driver(cdns_rtc_driver); module_platform_driver(cdns_rtc_driver);

View File

@ -1527,7 +1527,7 @@ static void cmos_platform_shutdown(struct platform_device *pdev)
MODULE_ALIAS("platform:rtc_cmos"); MODULE_ALIAS("platform:rtc_cmos");
static struct platform_driver cmos_platform_driver = { static struct platform_driver cmos_platform_driver = {
.remove_new = cmos_platform_remove, .remove = cmos_platform_remove,
.shutdown = cmos_platform_shutdown, .shutdown = cmos_platform_shutdown,
.driver = { .driver = {
.name = driver_name, .name = driver_name,

View File

@ -401,7 +401,7 @@ MODULE_DEVICE_TABLE(platform, cros_ec_rtc_id);
static struct platform_driver cros_ec_rtc_driver = { static struct platform_driver cros_ec_rtc_driver = {
.probe = cros_ec_rtc_probe, .probe = cros_ec_rtc_probe,
.remove_new = cros_ec_rtc_remove, .remove = cros_ec_rtc_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.pm = &cros_ec_rtc_pm_ops, .pm = &cros_ec_rtc_pm_ops,

View File

@ -1354,7 +1354,7 @@ static struct platform_driver ds1685_rtc_driver = {
.name = "rtc-ds1685", .name = "rtc-ds1685",
}, },
.probe = ds1685_rtc_probe, .probe = ds1685_rtc_probe,
.remove_new = ds1685_rtc_remove, .remove = ds1685_rtc_remove,
}; };
module_platform_driver(ds1685_rtc_driver); module_platform_driver(ds1685_rtc_driver);
/* ----------------------------------------------------------------------- */ /* ----------------------------------------------------------------------- */

View File

@ -214,7 +214,7 @@ static struct platform_driver ftrtc010_rtc_driver = {
.of_match_table = ftrtc010_rtc_dt_match, .of_match_table = ftrtc010_rtc_dt_match,
}, },
.probe = ftrtc010_rtc_probe, .probe = ftrtc010_rtc_probe,
.remove_new = ftrtc010_rtc_remove, .remove = ftrtc010_rtc_remove,
}; };
module_platform_driver_probe(ftrtc010_rtc_driver, ftrtc010_rtc_probe); module_platform_driver_probe(ftrtc010_rtc_driver, ftrtc010_rtc_probe);

View File

@ -319,7 +319,7 @@ static struct platform_driver hid_time_platform_driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
}, },
.probe = hid_time_probe, .probe = hid_time_probe,
.remove_new = hid_time_remove, .remove = hid_time_remove,
}; };
module_platform_driver(hid_time_platform_driver); module_platform_driver(hid_time_platform_driver);

View File

@ -860,7 +860,7 @@ static struct platform_driver dryice_rtc_driver __refdata = {
.name = "imxdi_rtc", .name = "imxdi_rtc",
.of_match_table = dryice_dt_ids, .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); module_platform_driver_probe(dryice_rtc_driver, dryice_rtc_probe);

View File

@ -381,7 +381,7 @@ MODULE_DEVICE_TABLE(acpi, loongson_rtc_acpi_match);
static struct platform_driver loongson_rtc_driver = { static struct platform_driver loongson_rtc_driver = {
.probe = loongson_rtc_probe, .probe = loongson_rtc_probe,
.remove_new = loongson_rtc_remove, .remove = loongson_rtc_remove,
.driver = { .driver = {
.name = "loongson-rtc", .name = "loongson-rtc",
.of_match_table = loongson_rtc_of_match, .of_match_table = loongson_rtc_of_match,

View File

@ -285,7 +285,7 @@ MODULE_DEVICE_TABLE(of, lpc24xx_rtc_match);
static struct platform_driver lpc24xx_rtc_driver = { static struct platform_driver lpc24xx_rtc_driver = {
.probe = lpc24xx_rtc_probe, .probe = lpc24xx_rtc_probe,
.remove_new = lpc24xx_rtc_remove, .remove = lpc24xx_rtc_remove,
.driver = { .driver = {
.name = "lpc24xx-rtc", .name = "lpc24xx-rtc",
.of_match_table = lpc24xx_rtc_match, .of_match_table = lpc24xx_rtc_match,

View File

@ -875,7 +875,7 @@ static struct platform_driver max77686_rtc_driver = {
.pm = &max77686_rtc_pm_ops, .pm = &max77686_rtc_pm_ops,
}, },
.probe = max77686_rtc_probe, .probe = max77686_rtc_probe,
.remove_new = max77686_rtc_remove, .remove = max77686_rtc_remove,
.id_table = rtc_id, .id_table = rtc_id,
}; };

View File

@ -350,7 +350,7 @@ MODULE_DEVICE_TABLE(platform, mc13xxx_rtc_idtable);
static struct platform_driver mc13xxx_rtc_driver = { static struct platform_driver mc13xxx_rtc_driver = {
.id_table = mc13xxx_rtc_idtable, .id_table = mc13xxx_rtc_idtable,
.remove_new = mc13xxx_rtc_remove, .remove = mc13xxx_rtc_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
}, },

View File

@ -398,7 +398,7 @@ static struct platform_driver mpc5121_rtc_driver = {
.of_match_table = of_match_ptr(mpc5121_rtc_match), .of_match_table = of_match_ptr(mpc5121_rtc_match),
}, },
.probe = mpc5121_rtc_probe, .probe = mpc5121_rtc_probe,
.remove_new = mpc5121_rtc_remove, .remove = mpc5121_rtc_remove,
}; };
module_platform_driver(mpc5121_rtc_driver); module_platform_driver(mpc5121_rtc_driver);

View File

@ -288,7 +288,7 @@ MODULE_DEVICE_TABLE(of, mpfs_rtc_of_match);
static struct platform_driver mpfs_rtc_driver = { static struct platform_driver mpfs_rtc_driver = {
.probe = mpfs_rtc_probe, .probe = mpfs_rtc_probe,
.remove_new = mpfs_rtc_remove, .remove = mpfs_rtc_remove,
.driver = { .driver = {
.name = "mpfs_rtc", .name = "mpfs_rtc",
.of_match_table = mpfs_rtc_of_match, .of_match_table = mpfs_rtc_of_match,

View 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 = { static struct platform_driver mtk_rtc_driver = {
.probe = mtk_rtc_probe, .probe = mtk_rtc_probe,
.remove_new = mtk_rtc_remove, .remove = mtk_rtc_remove,
.driver = { .driver = {
.name = MTK_RTC_DEV, .name = MTK_RTC_DEV,
.of_match_table = mtk_rtc_match, .of_match_table = mtk_rtc_match,

View File

@ -308,7 +308,7 @@ MODULE_DEVICE_TABLE(of, rtc_mv_of_match_table);
* triggering a section mismatch warning. * triggering a section mismatch warning.
*/ */
static struct platform_driver mv_rtc_driver __refdata = { static struct platform_driver mv_rtc_driver __refdata = {
.remove_new = __exit_p(mv_rtc_remove), .remove = __exit_p(mv_rtc_remove),
.driver = { .driver = {
.name = "rtc-mv", .name = "rtc-mv",
.of_match_table = of_match_ptr(rtc_mv_of_match_table), .of_match_table = of_match_ptr(rtc_mv_of_match_table),

View File

@ -381,7 +381,7 @@ static struct platform_driver mxc_rtc_driver = {
.of_match_table = mxc_ids, .of_match_table = mxc_ids,
}, },
.probe = mxc_rtc_probe, .probe = mxc_rtc_probe,
.remove_new = mxc_rtc_remove, .remove = mxc_rtc_remove,
}; };
module_platform_driver(mxc_rtc_driver); module_platform_driver(mxc_rtc_driver);

View File

@ -1014,7 +1014,7 @@ static void omap_rtc_shutdown(struct platform_device *pdev)
static struct platform_driver omap_rtc_driver = { static struct platform_driver omap_rtc_driver = {
.probe = omap_rtc_probe, .probe = omap_rtc_probe,
.remove_new = omap_rtc_remove, .remove = omap_rtc_remove,
.shutdown = omap_rtc_shutdown, .shutdown = omap_rtc_shutdown,
.driver = { .driver = {
.name = "omap_rtc", .name = "omap_rtc",

View File

@ -346,7 +346,7 @@ MODULE_DEVICE_TABLE(of, of_palmas_rtc_match);
static struct platform_driver palmas_rtc_driver = { static struct platform_driver palmas_rtc_driver = {
.probe = palmas_rtc_probe, .probe = palmas_rtc_probe,
.remove_new = palmas_rtc_remove, .remove = palmas_rtc_remove,
.driver = { .driver = {
.name = "palmas-rtc", .name = "palmas-rtc",
.pm = &palmas_rtc_pm_ops, .pm = &palmas_rtc_pm_ops,

View File

@ -273,7 +273,7 @@ static struct platform_driver pcf50633_rtc_driver = {
.name = "pcf50633-rtc", .name = "pcf50633-rtc",
}, },
.probe = pcf50633_rtc_probe, .probe = pcf50633_rtc_probe,
.remove_new = pcf50633_rtc_remove, .remove = pcf50633_rtc_remove,
}; };
module_platform_driver(pcf50633_rtc_driver); module_platform_driver(pcf50633_rtc_driver);

View File

@ -371,7 +371,7 @@ MODULE_DEVICE_TABLE(of, pic32_rtc_dt_ids);
static struct platform_driver pic32_rtc_driver = { static struct platform_driver pic32_rtc_driver = {
.probe = pic32_rtc_probe, .probe = pic32_rtc_probe,
.remove_new = pic32_rtc_remove, .remove = pic32_rtc_remove,
.driver = { .driver = {
.name = "pic32-rtc", .name = "pic32-rtc",
.of_match_table = of_match_ptr(pic32_rtc_dt_ids), .of_match_table = of_match_ptr(pic32_rtc_dt_ids),

View File

@ -537,7 +537,7 @@ static void pm8xxx_remove(struct platform_device *pdev)
static struct platform_driver pm8xxx_rtc_driver = { static struct platform_driver pm8xxx_rtc_driver = {
.probe = pm8xxx_rtc_probe, .probe = pm8xxx_rtc_probe,
.remove_new = pm8xxx_remove, .remove = pm8xxx_remove,
.driver = { .driver = {
.name = "rtc-pm8xxx", .name = "rtc-pm8xxx",
.of_match_table = pm8xxx_id_table, .of_match_table = pm8xxx_id_table,

View 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. * triggering a section mismatch warning.
*/ */
static struct platform_driver pxa_rtc_driver __refdata = { static struct platform_driver pxa_rtc_driver __refdata = {
.remove_new = __exit_p(pxa_rtc_remove), .remove = __exit_p(pxa_rtc_remove),
.driver = { .driver = {
.name = "pxa-rtc", .name = "pxa-rtc",
.of_match_table = of_match_ptr(pxa_rtc_dt_ids), .of_match_table = of_match_ptr(pxa_rtc_dt_ids),

View File

@ -298,7 +298,7 @@ static SIMPLE_DEV_PM_OPS(rc5t583_rtc_pm_ops, rc5t583_rtc_suspend,
static struct platform_driver rc5t583_rtc_driver = { static struct platform_driver rc5t583_rtc_driver = {
.probe = rc5t583_rtc_probe, .probe = rc5t583_rtc_probe,
.remove_new = rc5t583_rtc_remove, .remove = rc5t583_rtc_remove,
.driver = { .driver = {
.name = "rtc-rc5t583", .name = "rtc-rc5t583",
.pm = &rc5t583_rtc_pm_ops, .pm = &rc5t583_rtc_pm_ops,

View File

@ -228,7 +228,7 @@ static void rtd119x_rtc_remove(struct platform_device *pdev)
static struct platform_driver rtd119x_rtc_driver = { static struct platform_driver rtd119x_rtc_driver = {
.probe = rtd119x_rtc_probe, .probe = rtd119x_rtc_probe,
.remove_new = rtd119x_rtc_remove, .remove = rtd119x_rtc_remove,
.driver = { .driver = {
.name = "rtd1295-rtc", .name = "rtd1295-rtc",
.of_match_table = rtd119x_rtc_dt_ids, .of_match_table = rtd119x_rtc_dt_ids,

View File

@ -405,7 +405,7 @@ MODULE_DEVICE_TABLE(of, rzn1_rtc_of_match);
static struct platform_driver rzn1_rtc_driver = { static struct platform_driver rzn1_rtc_driver = {
.probe = rzn1_rtc_probe, .probe = rzn1_rtc_probe,
.remove_new = rzn1_rtc_remove, .remove = rzn1_rtc_remove,
.driver = { .driver = {
.name = "rzn1-rtc", .name = "rzn1-rtc",
.of_match_table = rzn1_rtc_of_match, .of_match_table = rzn1_rtc_of_match,

View File

@ -597,7 +597,7 @@ MODULE_DEVICE_TABLE(of, s3c_rtc_dt_match);
static struct platform_driver s3c_rtc_driver = { static struct platform_driver s3c_rtc_driver = {
.probe = s3c_rtc_probe, .probe = s3c_rtc_probe,
.remove_new = s3c_rtc_remove, .remove = s3c_rtc_remove,
.driver = { .driver = {
.name = "s3c-rtc", .name = "s3c-rtc",
.pm = &s3c_rtc_pm_ops, .pm = &s3c_rtc_pm_ops,

View File

@ -341,7 +341,7 @@ MODULE_DEVICE_TABLE(of, sa1100_rtc_dt_ids);
static struct platform_driver sa1100_rtc_driver = { static struct platform_driver sa1100_rtc_driver = {
.probe = sa1100_rtc_probe, .probe = sa1100_rtc_probe,
.remove_new = sa1100_rtc_remove, .remove = sa1100_rtc_remove,
.driver = { .driver = {
.name = "sa1100-rtc", .name = "sa1100-rtc",
.pm = &sa1100_rtc_pm_ops, .pm = &sa1100_rtc_pm_ops,

View File

@ -678,7 +678,7 @@ static struct platform_driver sh_rtc_platform_driver __refdata = {
.pm = &sh_rtc_pm_ops, .pm = &sh_rtc_pm_ops,
.of_match_table = sh_rtc_of_match, .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); module_platform_driver_probe(sh_rtc_platform_driver, sh_rtc_probe);

View File

@ -475,7 +475,7 @@ MODULE_DEVICE_TABLE(of, spear_rtc_id_table);
static struct platform_driver spear_rtc_driver = { static struct platform_driver spear_rtc_driver = {
.probe = spear_rtc_probe, .probe = spear_rtc_probe,
.remove_new = spear_rtc_remove, .remove = spear_rtc_remove,
.shutdown = spear_rtc_shutdown, .shutdown = spear_rtc_shutdown,
.driver = { .driver = {
.name = "rtc-spear", .name = "rtc-spear",

View File

@ -1287,7 +1287,7 @@ static const struct dev_pm_ops stm32_rtc_pm_ops = {
static struct platform_driver stm32_rtc_driver = { static struct platform_driver stm32_rtc_driver = {
.probe = stm32_rtc_probe, .probe = stm32_rtc_probe,
.remove_new = stm32_rtc_remove, .remove = stm32_rtc_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.pm = &stm32_rtc_pm_ops, .pm = &stm32_rtc_pm_ops,

View File

@ -403,7 +403,7 @@ MODULE_DEVICE_TABLE(of, rtc_dt_ids);
static struct platform_driver stmp3xxx_rtcdrv = { static struct platform_driver stmp3xxx_rtcdrv = {
.probe = stmp3xxx_rtc_probe, .probe = stmp3xxx_rtc_probe,
.remove_new = stmp3xxx_rtc_remove, .remove = stmp3xxx_rtc_remove,
.driver = { .driver = {
.name = "stmp3xxx-rtc", .name = "stmp3xxx-rtc",
.pm = &stmp3xxx_rtc_pm_ops, .pm = &stmp3xxx_rtc_pm_ops,

View 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 = { static struct platform_driver sp_rtc_driver = {
.probe = sp_rtc_probe, .probe = sp_rtc_probe,
.remove_new = sp_rtc_remove, .remove = sp_rtc_remove,
.driver = { .driver = {
.name = "sp7021-rtc", .name = "sp7021-rtc",
.of_match_table = sp_rtc_of_match, .of_match_table = sp_rtc_of_match,

View File

@ -399,7 +399,7 @@ static void tegra_rtc_shutdown(struct platform_device *pdev)
static struct platform_driver tegra_rtc_driver = { static struct platform_driver tegra_rtc_driver = {
.probe = tegra_rtc_probe, .probe = tegra_rtc_probe,
.remove_new = tegra_rtc_remove, .remove = tegra_rtc_remove,
.shutdown = tegra_rtc_shutdown, .shutdown = tegra_rtc_shutdown,
.driver = { .driver = {
.name = "tegra_rtc", .name = "tegra_rtc",

View File

@ -317,7 +317,7 @@ static struct platform_driver tps6586x_rtc_driver = {
.pm = &tps6586x_pm_ops, .pm = &tps6586x_pm_ops,
}, },
.probe = tps6586x_rtc_probe, .probe = tps6586x_rtc_probe,
.remove_new = tps6586x_rtc_remove, .remove = tps6586x_rtc_remove,
}; };
module_platform_driver(tps6586x_rtc_driver); module_platform_driver(tps6586x_rtc_driver);

View File

@ -673,7 +673,7 @@ MODULE_DEVICE_TABLE(of, twl_rtc_of_match);
static struct platform_driver twl4030rtc_driver = { static struct platform_driver twl4030rtc_driver = {
.probe = twl_rtc_probe, .probe = twl_rtc_probe,
.remove_new = twl_rtc_remove, .remove = twl_rtc_remove,
.shutdown = twl_rtc_shutdown, .shutdown = twl_rtc_shutdown,
.driver = { .driver = {
.name = "twl_rtc", .name = "twl_rtc",

View File

@ -251,7 +251,7 @@ MODULE_DEVICE_TABLE(of, wmt_dt_ids);
static struct platform_driver vt8500_rtc_driver = { static struct platform_driver vt8500_rtc_driver = {
.probe = vt8500_rtc_probe, .probe = vt8500_rtc_probe,
.remove_new = vt8500_rtc_remove, .remove = vt8500_rtc_remove,
.driver = { .driver = {
.name = "vt8500-rtc", .name = "vt8500-rtc",
.of_match_table = wmt_dt_ids, .of_match_table = wmt_dt_ids,

View File

@ -459,7 +459,7 @@ static SIMPLE_DEV_PM_OPS(wm8350_rtc_pm_ops, wm8350_rtc_suspend,
static struct platform_driver wm8350_rtc_driver = { static struct platform_driver wm8350_rtc_driver = {
.probe = wm8350_rtc_probe, .probe = wm8350_rtc_probe,
.remove_new = wm8350_rtc_remove, .remove = wm8350_rtc_remove,
.driver = { .driver = {
.name = "wm8350-rtc", .name = "wm8350-rtc",
.pm = &wm8350_rtc_pm_ops, .pm = &wm8350_rtc_pm_ops,

View File

@ -263,7 +263,7 @@ MODULE_DEVICE_TABLE(of, xgene_rtc_of_match);
static struct platform_driver xgene_rtc_driver = { static struct platform_driver xgene_rtc_driver = {
.probe = xgene_rtc_probe, .probe = xgene_rtc_probe,
.remove_new = xgene_rtc_remove, .remove = xgene_rtc_remove,
.driver = { .driver = {
.name = "xgene-rtc", .name = "xgene-rtc",
.pm = &xgene_rtc_pm_ops, .pm = &xgene_rtc_pm_ops,

View File

@ -382,7 +382,7 @@ MODULE_DEVICE_TABLE(of, xlnx_rtc_of_match);
static struct platform_driver xlnx_rtc_driver = { static struct platform_driver xlnx_rtc_driver = {
.probe = xlnx_rtc_probe, .probe = xlnx_rtc_probe,
.remove_new = xlnx_rtc_remove, .remove = xlnx_rtc_remove,
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.pm = &xlnx_rtc_pm_ops, .pm = &xlnx_rtc_pm_ops,