public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
@ 2013-11-20  2:15 Axel Lin
  2013-11-20  9:22 ` Uwe Kleine-König
  2013-12-10 13:24 ` Uwe Kleine-König
  0 siblings, 2 replies; 7+ messages in thread
From: Axel Lin @ 2013-11-20  2:15 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner; +Cc: Uwe Kleine-König, linux-kernel

The time-efm32 driver uses the clocksource MMIO functions.
Thus it needs to select CLKSRC_MMIO in Kconfig.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
This fixes build error when COMPILE_TEST=y.
drivers/built-in.o: In function `efm32_clocksource_init':
drivers/clocksource/time-efm32.c:162: undefined reference to `clocksource_mmio_init'
drivers/built-in.o: In function `efm32_timer_init':
drivers/clocksource/time-efm32.c:274: undefined reference to `clocksource_mmio_readl_up'
make: *** [vmlinux] Error 1

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

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index bdb953e..99763eb 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -75,6 +75,7 @@ config CLKSRC_DBX500_PRCMU_SCHED_CLOCK
 config CLKSRC_EFM32
 	bool "Clocksource for Energy Micro's EFM32 SoCs" if !ARCH_EFM32
 	depends on OF && ARM && (ARCH_EFM32 || COMPILE_TEST)
+	select CLKSRC_MMIO
 	default ARCH_EFM32
 	help
 	  Support to use the timers of EFM32 SoCs as clock source and clock
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-12-16 20:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-20  2:15 [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO Axel Lin
2013-11-20  9:22 ` Uwe Kleine-König
2013-12-10 13:24 ` Uwe Kleine-König
2013-12-10 13:29   ` Daniel Lezcano
2013-12-10 16:05     ` Uwe Kleine-König
2013-12-16 20:08       ` Daniel Lezcano
2013-12-16 20:54         ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox