Commit 198da7be authored by Fabio Estevam's avatar Fabio Estevam Committed by Alexandre Belloni

rtc: imxdi: Convert to a DT-only driver

i.MX has been converted to a DT-only platform, so make the driver
depend on OF, remove the CONFIG_OF ifdefery and remove of_match_ptr().
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210315172029.173250-1-festevam@gmail.com
parent 6e00b6d0
...@@ -1331,6 +1331,7 @@ config RTC_DRV_DIGICOLOR ...@@ -1331,6 +1331,7 @@ config RTC_DRV_DIGICOLOR
config RTC_DRV_IMXDI config RTC_DRV_IMXDI
tristate "Freescale IMX DryIce Real Time Clock" tristate "Freescale IMX DryIce Real Time Clock"
depends on ARCH_MXC depends on ARCH_MXC
depends on OF
help help
Support for Freescale IMX DryIce RTC Support for Freescale IMX DryIce RTC
......
...@@ -840,19 +840,17 @@ static int __exit dryice_rtc_remove(struct platform_device *pdev) ...@@ -840,19 +840,17 @@ static int __exit dryice_rtc_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_OF
static const struct of_device_id dryice_dt_ids[] = { static const struct of_device_id dryice_dt_ids[] = {
{ .compatible = "fsl,imx25-rtc" }, { .compatible = "fsl,imx25-rtc" },
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, dryice_dt_ids); MODULE_DEVICE_TABLE(of, dryice_dt_ids);
#endif
static struct platform_driver dryice_rtc_driver = { static struct platform_driver dryice_rtc_driver = {
.driver = { .driver = {
.name = "imxdi_rtc", .name = "imxdi_rtc",
.of_match_table = of_match_ptr(dryice_dt_ids), .of_match_table = dryice_dt_ids,
}, },
.remove = __exit_p(dryice_rtc_remove), .remove = __exit_p(dryice_rtc_remove),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment