Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1679513

[PATCH] Make Common clock framework a menuconfig to ease disabling it all

From Vincent Legoll <vincent.legoll@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] Make Common clock framework a menuconfig to ease disabling it all
Date 2017-07-02 18:10 +0200
Message-ID <tYPBD-4pu-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


No need to get into the submenu to disable all common clock framework
-related config entries

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/clk/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 36cfea3..a1b174c 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -19,9 +19,12 @@ config COMMON_CLK
 	  Architectures utilizing the common struct clk should select
 	  this option.
 
-menu "Common Clock Framework"
+menuconfig COMMON_CLK_FRAMEWORK
+	tristate "Common Clock Framework"
 	depends on COMMON_CLK
 
+if COMMON_CLK_FRAMEWORK
+
 config COMMON_CLK_WM831X
 	tristate "Clock driver for WM831x/2x PMICs"
 	depends on MFD_WM831X
@@ -230,4 +233,4 @@ source "drivers/clk/tegra/Kconfig"
 source "drivers/clk/ti/Kconfig"
 source "drivers/clk/uniphier/Kconfig"
 
-endmenu
+endif # COMMON_CLK_FRAMEWORK
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] Make Common clock framework a menuconfig to ease disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-07-02 18:10 +0200
  Re: [PATCH] Make Common clock framework a menuconfig to ease  disabling it all Stephen Boyd <sboyd@codeaurora.org> - 2017-07-05 23:20 +0200
    Re: [PATCH] Make Common clock framework a menuconfig to ease  disabling it all Vincent Legoll <vincent.legoll@gmail.com> - 2017-07-06 09:30 +0200

csiph-web