[06/21] clk: make CONFIG_COMMON_CLK invisible

Submitted by Ike Panhc on June 6, 2012, 12:27 p.m.


Message ID 1338985656-26136-1-git-send-email-ike.pan@canonical.com
State New
Headers show

Commit Message

Ike Panhc June 6, 2012, 12:27 p.m.
From: Arnd Bergmann <arnd@arndb.de>

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 <arnd@arndb.de>
(cherry picked from commit 8fb61e33507e5d76b69467b4f96290338e96b733)

Signed-off-by: Ike Panhc <ike.pan@canonical.com>
 drivers/clk/Kconfig |   15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

Patch hide | download patch | download mbox

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
-menuconfig COMMON_CLK
-	bool "Common Clock Framework"
+config COMMON_CLK
+	bool
 	  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.
+menu "Common Clock Framework"
+	depends on COMMON_CLK
 	bool "Disabled unused clocks at boot"
@@ -47,4 +44,4 @@  config COMMON_CLK_DEBUG
 	  clk_flags, clk_prepare_count, clk_enable_count &