rtc: imx-sc: depend on HAVE_ARM_SMCCC
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 8 Feb 2019 10:01:03 +0000 (11:01 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 8 Feb 2019 11:08:39 +0000 (12:08 +0100)
Fix the following build issue:

drivers/rtc/rtc-imx-sc.o: In function `imx_sc_rtc_set_time':
>> rtc-imx-sc.c:(.text+0x212): undefined reference to `__arm_smccc_smc'

Fixes: 13a929f38ad7 ("rtc: imx-sc: add rtc set time support")
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/Kconfig

index faa9ae1..8f6735e 100644 (file)
@@ -1698,6 +1698,7 @@ config RTC_DRV_SNVS
 
 config RTC_DRV_IMX_SC
        depends on IMX_SCU
+       depends on HAVE_ARM_SMCCC
        tristate "NXP i.MX System Controller RTC support"
        help
           If you say yes here you get support for the NXP i.MX System