diff mbox

clk: Move debug_node field under DEBUG_FS flag in struct clk_core

Message ID 1433935707-3621-1-git-send-email-maxime.coquelin@st.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maxime Coquelin June 10, 2015, 11:28 a.m. UTC
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>
---
 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd June 10, 2015, 9:23 p.m. UTC | #1
On 06/10, Maxime Coquelin wrote:
> 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>
> ---

Applied to clk-next
diff mbox

Patch

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 459ce9d..afbaa73 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -68,11 +68,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;
 };