diff options
author | Mike Turquette <mturquette@linaro.org> | 2013-12-19 00:38:52 -0500 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2013-12-27 20:45:08 -0500 |
commit | ea72dc2cf9552631e43327ce593bdbb0b9fdf058 (patch) | |
tree | ccc7780a4c13dc2bd42a1e9012ba3838293eee9d | |
parent | aa73fbc504480cdb4c6406bd07fe040cc6c8f3cc (diff) |
clk: remove CONFIG_COMMON_CLK_DEBUG
Populate ${DEBUGS_MOUNT_POINT}/clk if CONFIG_DEBUG_FS is set. This
eliminates the extra (annoying) step of enabling the config option
manually.
Signed-off-by: Mike Turquette <mturquette@linaro.org>
-rw-r--r-- | drivers/clk/Kconfig | 10 | ||||
-rw-r--r-- | drivers/clk/clk.c | 2 | ||||
-rw-r--r-- | include/linux/clk-private.h | 2 |
3 files changed, 2 insertions, 12 deletions
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 3089f05ba661..407cffb04895 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig | |||
@@ -23,16 +23,6 @@ config COMMON_CLK | |||
23 | menu "Common Clock Framework" | 23 | menu "Common Clock Framework" |
24 | depends on COMMON_CLK | 24 | depends on COMMON_CLK |
25 | 25 | ||
26 | config COMMON_CLK_DEBUG | ||
27 | bool "DebugFS representation of clock tree" | ||
28 | select DEBUG_FS | ||
29 | ---help--- | ||
30 | Creates a directory hierarchy in debugfs for visualizing the clk | ||
31 | tree structure. Each directory contains read-only members | ||
32 | that export information specific to that clk node: clk_rate, | ||
33 | clk_flags, clk_prepare_count, clk_enable_count & | ||
34 | clk_notifier_count. | ||
35 | |||
36 | config COMMON_CLK_WM831X | 26 | config COMMON_CLK_WM831X |
37 | tristate "Clock driver for WM831x/2x PMICs" | 27 | tristate "Clock driver for WM831x/2x PMICs" |
38 | depends on MFD_WM831X | 28 | depends on MFD_WM831X |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index fbe08f618d59..b7f6e99e61eb 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -92,7 +92,7 @@ static void clk_enable_unlock(unsigned long flags) | |||
92 | 92 | ||
93 | /*** debugfs support ***/ | 93 | /*** debugfs support ***/ |
94 | 94 | ||
95 | #ifdef CONFIG_COMMON_CLK_DEBUG | 95 | #ifdef CONFIG_DEBUG_FS |
96 | #include <linux/debugfs.h> | 96 | #include <linux/debugfs.h> |
97 | 97 | ||
98 | static struct dentry *rootdir; | 98 | static struct dentry *rootdir; |
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h index accb517e77e9..5fb086b06c83 100644 --- a/include/linux/clk-private.h +++ b/include/linux/clk-private.h | |||
@@ -45,7 +45,7 @@ struct clk { | |||
45 | struct hlist_head children; | 45 | struct hlist_head children; |
46 | struct hlist_node child_node; | 46 | struct hlist_node child_node; |
47 | unsigned int notifier_count; | 47 | unsigned int notifier_count; |
48 | #ifdef CONFIG_COMMON_CLK_DEBUG | 48 | #ifdef CONFIG_DEBUG_FS |
49 | struct dentry *dentry; | 49 | struct dentry *dentry; |
50 | #endif | 50 | #endif |
51 | }; | 51 | }; |