clk: Move debug_node field under DEBUG_FS flag in struct clk_core
authorMaxime Coquelin <maxime.coquelin@st.com>
Wed, 10 Jun 2015 11:28:27 +0000 (13:28 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 10 Jun 2015 21:21:22 +0000 (14:21 -0700)
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>
drivers/clk/clk.c

index ee222e28bd97b35471103723fac29be53d52ed52..1cf479b9f3b4e8b952f7e5d9b18040963fde7c99 100644 (file)
@@ -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;
 };