Skip to contentSkip to conversation

rtc: imxdi: Convert to a DT-only driver

PATCH Applied Fabio Estevam 2 participants 2 messages Mar 15, 2021

Subsystems (2)

v1 of 3 Applied Latest is v3 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 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().

---
 drivers/rtc/Kconfig     | 1 +
 drivers/rtc/rtc-imxdi.c | 4 +---
 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/rtc/Kconfig +1 -0
index e6205f7a7d59..d6a502c5c973 100644
@@ -1339,6 +1339,7 @@ config RTC_DRV_DIGICOLOR
 config RTC_DRV_IMXDI
 	tristate "Freescale IMX DryIce Real Time Clock"
 	depends on ARCH_MXC
+	depends on OF
 	help
 	   Support for Freescale IMX DryIce RTC
 
drivers/rtc/rtc-imxdi.c +1 -3
index c2692da74e09..c1806f4d68e7 100644
@@ -840,19 +840,17 @@ static int __exit dryice_rtc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id dryice_dt_ids[] = {
 	{ .compatible = "fsl,imx25-rtc" },
 	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, dryice_dt_ids);
-#endif
 
 static struct platform_driver dryice_rtc_driver = {
 	.driver = {
 		   .name = "imxdi_rtc",
-		   .of_match_table = of_match_ptr(dryice_dt_ids),
+		   .of_match_table = dryice_dt_ids,
 		   },
 	.remove = __exit_p(dryice_rtc_remove),
 };
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Fabio Estevam

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().

Applied, thanks!

[1/1] rtc: imxdi: Convert to a DT-only driver

      commit: 198da7be18c47637d69cdab1f65581b04ebd759d

Best regards,

Signature · 1 line
Alexandre Belloni <[email protected]>