From patchwork Wed Apr 16 18:40:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 4003691 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BB35B9F2CC for ; Wed, 16 Apr 2014 18:43:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA0352035C for ; Wed, 16 Apr 2014 18:43:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AFAA020353 for ; Wed, 16 Apr 2014 18:43:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaUlT-0007tP-IR; Wed, 16 Apr 2014 18:40:55 +0000 Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaUlQ-0007lc-Fd for linux-arm-kernel@lists.infradead.org; Wed, 16 Apr 2014 18:40:53 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:a236:9fff:fe00:814]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WaUky-00023s-GM; Wed, 16 Apr 2014 20:40:24 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.82) (envelope-from ) id 1WaUkx-0006Jg-MX; Wed, 16 Apr 2014 20:40:23 +0200 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Daniel Lezcano , Thomas Gleixner Subject: [PATCH] clocksource: efm32: let CLKSRC_EFM32 select CLKSRC_OF Date: Wed, 16 Apr 2014 20:40:12 +0200 Message-Id: <1397673612-24247-1-git-send-email-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:a236:9fff:fe00:814 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140416_114052_746951_0857149C X-CRM114-Status: GOOD ( 13.12 ) X-Spam-Score: -0.7 (/) Cc: kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Signed-off-by: Uwe Kleine-König Acked-by: Rob Herring --- 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