rtc: snvs: Improve Kconfig dependency
authorAnson Huang <Anson.Huang@nxp.com>
Mon, 2 Mar 2020 08:13:05 +0000 (16:13 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:08 +0000 (11:12 +0100)
i.MX SNVS RTC should depend on ARCH_MXC or COMPILE_TEST.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1583136785-4973-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig

index 34c8b6c7e0954ef9a49a6f693900896cf7621101..acaf6f98b54e7dedeb2ca8d43a8c2e357ea72f58 100644 (file)
@@ -1761,6 +1761,7 @@ config RTC_DRV_MXC_V2
 config RTC_DRV_SNVS
        tristate "Freescale SNVS RTC support"
        select REGMAP_MMIO
+       depends on ARCH_MXC || COMPILE_TEST
        depends on HAS_IOMEM
        depends on OF
        help