From: Maxime Coquelin Date: Wed, 10 Jun 2015 11:28:27 +0000 (+0200) Subject: clk: Move debug_node field under DEBUG_FS flag in struct clk_core X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8c9a8a8f71f43e56d35524fa17646ce45c2f7fe6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ee222e28bd97..1cf479b9f3b4 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; };