rtc: mxc{,_v2}: enable COMPILE_TEST
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 21 Nov 2020 22:45:29 +0000 (23:45 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 Dec 2020 22:42:36 +0000 (23:42 +0100)
Extend code coverage for the rtc-mxc and rtc-mxc-v2 drivers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20201121224529.568237-1-alexandre.belloni@bootlin.com
drivers/rtc/Kconfig

index 172b411..6123f9f 100644 (file)
@@ -1756,7 +1756,9 @@ config RTC_DRV_LOONGSON1
 
 config RTC_DRV_MXC
        tristate "Freescale MXC Real Time Clock"
 
 config RTC_DRV_MXC
        tristate "Freescale MXC Real Time Clock"
-       depends on ARCH_MXC
+       depends on ARCH_MXC || COMPILE_TEST
+       depends on HAS_IOMEM
+       depends on OF
        help
           If you say yes here you get support for the Freescale MXC
           RTC module.
        help
           If you say yes here you get support for the Freescale MXC
           RTC module.
@@ -1766,7 +1768,9 @@ config RTC_DRV_MXC
 
 config RTC_DRV_MXC_V2
        tristate "Freescale MXC Real Time Clock for i.MX53"
 
 config RTC_DRV_MXC_V2
        tristate "Freescale MXC Real Time Clock for i.MX53"
-       depends on ARCH_MXC
+       depends on ARCH_MXC || COMPILE_TEST
+       depends on HAS_IOMEM
+       depends on OF
        help
           If you say yes here you get support for the Freescale MXC
           SRTC module in i.MX53 processor.
        help
           If you say yes here you get support for the Freescale MXC
           SRTC module in i.MX53 processor.