summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/clk.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index c8ea2dd32251..0a52357ded5c 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2723,12 +2723,8 @@ static int clk_debug_register(struct clk_core *core)
mutex_lock(&clk_debug_lock);
hlist_add_head(&core->debug_node, &clk_debug_list);
-
- if (!inited)
- goto unlock;
-
- ret = clk_debug_create_one(core, rootdir);
-unlock:
+ if (inited)
+ ret = clk_debug_create_one(core, rootdir);
mutex_unlock(&clk_debug_lock);
return ret;