diff mbox series

clocksource/drivers/npcm: select TIMER_OF

Message ID 20190305132529.3835223-1-arnd@arndb.de
State Superseded
Headers show
Series clocksource/drivers/npcm: select TIMER_OF | expand

Commit Message

Arnd Bergmann March 5, 2019, 1:24 p.m. UTC
When this is disabled, we get a link failure:

drivers/clocksource/timer-npcm7xx.o: In function `npcm7xx_timer_init':
timer-npcm7xx.c:(.init.text+0xf): undefined reference to `timer_of_init'

Fixes: 1c00289ecd12 ("clocksource/drivers/npcm: Add NPCM7xx timer driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.0

Comments

Daniel Lezcano March 7, 2019, 9:02 a.m. UTC | #1
On 05/03/2019 14:24, Arnd Bergmann wrote:
> When this is disabled, we get a link failure:

> 

> drivers/clocksource/timer-npcm7xx.o: In function `npcm7xx_timer_init':

> timer-npcm7xx.c:(.init.text+0xf): undefined reference to `timer_of_init'

> 

> Fixes: 1c00289ecd12 ("clocksource/drivers/npcm: Add NPCM7xx timer driver")

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

> ---


Applied thanks


-- 
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
diff mbox series

Patch

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 171502a356aa..4b3d143f0f8a 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -145,6 +145,7 @@  config VT8500_TIMER
 config NPCM7XX_TIMER
 	bool "NPCM7xx timer driver" if COMPILE_TEST
 	depends on HAS_IOMEM
+	select TIMER_OF
 	select CLKSRC_MMIO
 	help
 	  Enable 24-bit TIMER0 and TIMER1 counters in the NPCM7xx architecture,