diff mbox series

[1/5] powerpc: always enable RTC_LIB

Message ID 20180423083642.2608886-1-arnd@arndb.de
State Accepted
Commit 6e8cef384a41882b2d4ec6992dd0d74246b3f353
Headers show
Series [1/5] powerpc: always enable RTC_LIB | expand

Commit Message

Arnd Bergmann April 23, 2018, 8:36 a.m. UTC
In order to use the rtc_tm_to_time64() and rtc_time64_to_tm()
helper functions in later patches, we have to ensure that
CONFIG_RTC_LIB is always built-in.

Note that this symbol only controls a couple of helper functions,
not the actual RTC subsystem, which remains optional and is
enabled with CONFIG_RTC_CLASS.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 arch/powerpc/Kconfig | 1 +
 1 file changed, 1 insertion(+)

-- 
2.9.0

Comments

Michael Ellerman June 4, 2018, 2:10 p.m. UTC | #1
On Mon, 2018-04-23 at 08:36:38 UTC, Arnd Bergmann wrote:
> In order to use the rtc_tm_to_time64() and rtc_time64_to_tm()

> helper functions in later patches, we have to ensure that

> CONFIG_RTC_LIB is always built-in.

> 

> Note that this symbol only controls a couple of helper functions,

> not the actual RTC subsystem, which remains optional and is

> enabled with CONFIG_RTC_CLASS.

> 

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>


Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/6e8cef384a41882b2d4ec6992dd0d7

cheers
diff mbox series

Patch

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index c32a181a7cbb..de2cda320fdd 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -232,6 +232,7 @@  config PPC
 	select OF_RESERVED_MEM
 	select OLD_SIGACTION			if PPC32
 	select OLD_SIGSUSPEND
+	select RTC_LIB
 	select SPARSE_IRQ
 	select SYSCTL_EXCEPTION_TRACE
 	select VIRT_TO_BUS			if !PPC64