mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00
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>
This commit is contained in:
parent
aa73fbc504
commit
ea72dc2cf9
@ -23,16 +23,6 @@ config COMMON_CLK
|
|||||||
menu "Common Clock Framework"
|
menu "Common Clock Framework"
|
||||||
depends on COMMON_CLK
|
depends on COMMON_CLK
|
||||||
|
|
||||||
config COMMON_CLK_DEBUG
|
|
||||||
bool "DebugFS representation of clock tree"
|
|
||||||
select DEBUG_FS
|
|
||||||
---help---
|
|
||||||
Creates a directory hierarchy in debugfs for visualizing the clk
|
|
||||||
tree structure. Each directory contains read-only members
|
|
||||||
that export information specific to that clk node: clk_rate,
|
|
||||||
clk_flags, clk_prepare_count, clk_enable_count &
|
|
||||||
clk_notifier_count.
|
|
||||||
|
|
||||||
config COMMON_CLK_WM831X
|
config COMMON_CLK_WM831X
|
||||||
tristate "Clock driver for WM831x/2x PMICs"
|
tristate "Clock driver for WM831x/2x PMICs"
|
||||||
depends on MFD_WM831X
|
depends on MFD_WM831X
|
||||||
|
@ -92,7 +92,7 @@ static void clk_enable_unlock(unsigned long flags)
|
|||||||
|
|
||||||
/*** debugfs support ***/
|
/*** debugfs support ***/
|
||||||
|
|
||||||
#ifdef CONFIG_COMMON_CLK_DEBUG
|
#ifdef CONFIG_DEBUG_FS
|
||||||
#include <linux/debugfs.h>
|
#include <linux/debugfs.h>
|
||||||
|
|
||||||
static struct dentry *rootdir;
|
static struct dentry *rootdir;
|
||||||
|
@ -45,7 +45,7 @@ struct clk {
|
|||||||
struct hlist_head children;
|
struct hlist_head children;
|
||||||
struct hlist_node child_node;
|
struct hlist_node child_node;
|
||||||
unsigned int notifier_count;
|
unsigned int notifier_count;
|
||||||
#ifdef CONFIG_COMMON_CLK_DEBUG
|
#ifdef CONFIG_DEBUG_FS
|
||||||
struct dentry *dentry;
|
struct dentry *dentry;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user