linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clocksource: efm32: let CLKSRC_EFM32 select CLKSRC_OF
Date: Wed, 16 Apr 2014 20:40:12 +0200	[thread overview]
Message-ID: <1397673612-24247-1-git-send-email-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <CAL_JsqKXYOdpCkixBLg8kAXwpkaLHhckJnTkzdNVeOQDYzxK3w@mail.gmail.com>

The efm32 timer driver is only usable with CLKSRC_OF, so it makes sense
to let its Kconfig symbol select it. For compile coverage testing it's not
needed though, so only select it if ARCH_EFM32 is enabled.

This allows to drop ARCH_EFM32 selecting CLKSRC_OF which is done here
for simplicity, too.

Reported-by: Rob Herring <robherring2@gmail.com>
Signed-off-by: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
---
 arch/arm/Kconfig            | 1 -
 drivers/clocksource/Kconfig | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index ab438cb5af55..e345419fb112 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -424,7 +424,6 @@ config ARCH_EFM32
 	select ARCH_REQUIRE_GPIOLIB
 	select AUTO_ZRELADDR
 	select ARM_NVIC
-	select CLKSRC_OF
 	select COMMON_CLK
 	select CPU_V7M
 	select GENERIC_CLOCKEVENTS
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -80,6 +80,7 @@ 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
+	select CLKSRC_OF if ARCH_EFM32
 	default ARCH_EFM32
 	help
 	  Support to use the timers of EFM32 SoCs as clock source and clock
-- 
1.9.1

  reply	other threads:[~2014-04-16 18:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-20  8:55 [PATCH] ARM: efm32: drop selecting CLKSRC_MMIO Uwe Kleine-König
2014-04-16 13:58 ` Rob Herring
2014-04-16 18:40   ` Uwe Kleine-König [this message]
2014-04-16 18:51     ` [PATCH] clocksource: efm32: let CLKSRC_EFM32 select CLKSRC_OF Rob Herring
2014-04-16 19:30       ` Uwe Kleine-König
2014-04-16 19:56         ` Daniel Lezcano
2014-04-17  7:36         ` Daniel Lezcano
2014-04-17 14:01           ` Rob Herring

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=1397673612-24247-1-git-send-email-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).