From patchwork Wed Jun 6 12:27:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ike Panhc X-Patchwork-Id: 163339 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 1741CB6F13 for ; Wed, 6 Jun 2012 22:27:50 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1ScFKw-0002fd-DR; Wed, 06 Jun 2012 12:27:42 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1ScFKt-0002ez-Vh for kernel-team@lists.ubuntu.com; Wed, 06 Jun 2012 12:27:40 +0000 Received: from [210.242.151.101] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ScFKt-00063R-Bd for kernel-team@lists.ubuntu.com; Wed, 06 Jun 2012 12:27:39 +0000 From: Ike Panhc To: kernel-team@lists.ubuntu.com Subject: [PATCH 06/21] clk: make CONFIG_COMMON_CLK invisible Date: Wed, 6 Jun 2012 20:27:36 +0800 Message-Id: <1338985656-26136-1-git-send-email-ike.pan@canonical.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1338985555-25924-1-git-send-email-ike.pan@canonical.com> References: <1338985555-25924-1-git-send-email-ike.pan@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com From: Arnd Bergmann BugLink: http://launchpad.net/bugs/1008345 All platforms that use the common clk infrastructure should select COMMON_CLK from platform code, and on all other platforms, it must not be enabled, so there is no point making the option visible to users, and when it is visible, we break randconfig builds. Signed-off-by: Arnd Bergmann (cherry picked from commit 8fb61e33507e5d76b69467b4f96290338e96b733) Signed-off-by: Ike Panhc --- drivers/clk/Kconfig | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 2eaf17e..165e1fe 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -9,21 +9,18 @@ config HAVE_CLK_PREPARE config HAVE_MACH_CLKDEV bool -menuconfig COMMON_CLK - bool "Common Clock Framework" +config COMMON_CLK + bool select HAVE_CLK_PREPARE ---help--- The common clock framework is a single definition of struct clk, useful across many platforms, as well as an implementation of the clock API in include/linux/clk.h. Architectures utilizing the common struct clk should select - this automatically, but it may be necessary to manually select - this option for loadable modules requiring the common clock - framework. - - If in doubt, say "N". + this option. -if COMMON_CLK +menu "Common Clock Framework" + depends on COMMON_CLK config COMMON_CLK_DISABLE_UNUSED bool "Disabled unused clocks at boot" @@ -47,4 +44,4 @@ config COMMON_CLK_DEBUG clk_flags, clk_prepare_count, clk_enable_count & clk_notifier_count. -endif +endmenu