diff mbox series

rtc: imx-sc: depend on HAVE_ARM_SMCCC

Message ID 20190208100530.21872-1-alexandre.belloni@bootlin.com
State Accepted
Headers show
Series rtc: imx-sc: depend on HAVE_ARM_SMCCC | expand

Commit Message

Alexandre Belloni Feb. 8, 2019, 10:05 a.m. UTC
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")
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 drivers/rtc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Anson Huang Feb. 8, 2019, 10:58 a.m. UTC | #1
Best Regards!
Anson Huang

> -----Original Message-----
> From: Alexandre Belloni [mailto:alexandre.belloni@bootlin.com]
> Sent: 2019年2月8日 18:06
> To: linux-rtc@vger.kernel.org
> Cc: Anson Huang <anson.huang@nxp.com>; linux-kernel@vger.kernel.org;
> Alexandre Belloni <alexandre.belloni@bootlin.com>
> Subject: [PATCH] rtc: imx-sc: depend on HAVE_ARM_SMCCC
> 
> 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")
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
>  drivers/rtc/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index
> faa9ae1a3062..8f6735e0ff14 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -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
> --
> 2.20.1

Sorry for the mistake.

Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
diff mbox series

Patch

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index faa9ae1a3062..8f6735e0ff14 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -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