Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210315172029.173250-1-festevam@gmail.com

authored by

Fabio Estevam and committed by
Alexandre Belloni
198da7be 6e00b6d0

+2 -3
+1
drivers/rtc/Kconfig
··· 1331 1331 config RTC_DRV_IMXDI 1332 1332 tristate "Freescale IMX DryIce Real Time Clock" 1333 1333 depends on ARCH_MXC 1334 + depends on OF 1334 1335 help 1335 1336 Support for Freescale IMX DryIce RTC 1336 1337
+1 -3
drivers/rtc/rtc-imxdi.c
··· 840 840 return 0; 841 841 } 842 842 843 - #ifdef CONFIG_OF 844 843 static const struct of_device_id dryice_dt_ids[] = { 845 844 { .compatible = "fsl,imx25-rtc" }, 846 845 { /* sentinel */ } 847 846 }; 848 847 849 848 MODULE_DEVICE_TABLE(of, dryice_dt_ids); 850 - #endif 851 849 852 850 static struct platform_driver dryice_rtc_driver = { 853 851 .driver = { 854 852 .name = "imxdi_rtc", 855 - .of_match_table = of_match_ptr(dryice_dt_ids), 853 + .of_match_table = dryice_dt_ids, 856 854 }, 857 855 .remove = __exit_p(dryice_rtc_remove), 858 856 };