summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@st.com>2015-06-10 11:28:27 (GMT)
committerStephen Boyd <sboyd@codeaurora.org>2015-06-10 21:21:22 (GMT)
commit8c9a8a8f71f43e56d35524fa17646ce45c2f7fe6 (patch)
treef5abc7d96742b2b8e40b5005692b1cf1c417535d /drivers/clk
parent3037e9ea780027d41baaaabb68a749e49e7c8260 (diff)
downloadlinux-8c9a8a8f71f43e56d35524fa17646ce45c2f7fe6.tar.xz
clk: Move debug_node field under DEBUG_FS flag in struct clk_core
The debug_node field is only used when DEBUG_FS config is selected, so declare it only if DEBUG_FS is selected. Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index ee222e2..1cf479b 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -62,11 +62,11 @@ struct clk_core {
int phase;
struct hlist_head children;
struct hlist_node child_node;
- struct hlist_node debug_node;
struct hlist_head clks;
unsigned int notifier_count;
#ifdef CONFIG_DEBUG_FS
struct dentry *dentry;
+ struct hlist_node debug_node;
#endif
struct kref ref;
};