Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1306497

[PATCH 2/2] clocksource/drivers/fsl_ftm_timer: Fix CLKSRC_MMIO dependency

From Daniel Lezcano <daniel.lezcano@linaro.org>
Newsgroups linux.kernel
Subject [PATCH 2/2] clocksource/drivers/fsl_ftm_timer: Fix CLKSRC_MMIO dependency
Date 2016-01-11 17:50 +0100
Message-ID <qPNPl-4ZY-23@gated-at.bofh.it> (permalink)
References <qPNPk-4ZY-5@gated-at.bofh.it> <qPNPl-4ZY-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Select CLKSRC_MMIO when FSL_FTM_TIMER is enabled. Otherwise it fails to
compile on i386 with COMPILE_TEST=y.

"
on i386:
when CLKSRC_MMIO is not enabled:

drivers/built-in.o: In function `ftm_timer_init':
fsl_ftm_timer.c:(.init.text+0x6842): undefined reference to `clocksource_mmio_readl_up'
fsl_ftm_timer.c:(.init.text+0x6855): undefined reference to `clocksource_mmio_init'
"

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
 drivers/clocksource/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 95c33f4..1efd859 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -257,6 +257,7 @@ config CLKSRC_SAMSUNG_PWM
 config FSL_FTM_TIMER
 	bool "Freescale FlexTimer Module driver" if COMPILE_TEST
 	depends on GENERIC_CLOCKEVENTS
+	select CLKSRC_MMIO
 	help
 	  Support for Freescale FlexTimer Module (FTM) timer.
 
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PULL] clockevents: last minute 4.5 fixes Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-01-11 17:50 +0100
  [PATCH 2/2] clocksource/drivers/fsl_ftm_timer: Fix CLKSRC_MMIO dependency Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-01-11 17:50 +0100
  [PATCH 1/2] clocksource/drivers: Fix dependencies for !HAS_IOMEM archs Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-01-11 17:50 +0100
    Re: [PATCH 1/2] clocksource/drivers: Fix dependencies for !HAS_IOMEM  archs Richard Weinberger <richard@nod.at> - 2016-01-11 18:00 +0100
      Re: [PATCH 1/2] clocksource/drivers: Fix dependencies for !HAS_IOMEM  archs Daniel Lezcano <daniel.lezcano@linaro.org> - 2016-01-11 19:00 +0100

csiph-web