All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Daniel Lezcano <daniel.lezcano@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>
Cc: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	linux-kernel@vger.kernel.org
Subject: [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO
Date: Wed, 20 Nov 2013 10:15:11 +0800	[thread overview]
Message-ID: <1384913711.13115.2.camel@phoenix> (raw)

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




             reply	other threads:[~2013-11-20  2:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-20  2:15 Axel Lin [this message]
2013-11-20  9:22 ` [PATCH] clocksource: time-efm32: Select CLKSRC_MMIO 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384913711.13115.2.camel@phoenix \
    --to=axel.lin@ingics.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.