Skip to contentSkip to conversation

rtc: imx-sc: depend on HAVE_ARM_SMCCC

PATCH In review Alexandre Belloni 2 participants 2 messages Feb 8, 2019 Real time clock (RTC)

lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 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':

Quoted 1 line
Quoted 1 line

rtc-imx-sc.c:(.text+0x212): undefined reference to `__arm_smccc_smc'

Fixes 13a929f38ad7 ("rtc: imx-sc: add rtc set time support")
---
 drivers/rtc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/rtc/Kconfig +1 -0
index faa9ae1a3062..8f6735e0ff14 100644
@@ -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
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw

Best Regards!
Anson Huang

Quoted 32 lines

-----Original Message-----
From: Alexandre Belloni [mailto:[email protected]]
Sent: 2019年2月8日 18:06
To: [email protected]
Cc: Anson Huang <[email protected]>; [email protected]; Alexandre Belloni <[email protected]>
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':

Quoted 1 line
Quoted 1 line

rtc-imx-sc.c:(.text+0x212): undefined reference to `__arm_smccc_smc'

Fixes 13a929f38ad7 ("rtc: imx-sc: add rtc set time support")
---
 drivers/rtc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/rtc/Kconfig index renamed from drivers/rtc/Kconfig +0 -0

faa9ae1a3062..8f6735e0ff14 100644

drivers/rtc/Kconfig +1 -1
@@ -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
--
Quoted 1 line

2.20.1

Sorry for the mistake.