Commit 4106a3d9 authored by Insu Yun's avatar Insu Yun Committed by Stephen Boyd

clk: unlock for handling unregistered clock

If clock is already unregistered, it returns with holding lock.
It needs to be unlocked.
Signed-off-by: default avatarInsu Yun <wuninsu@gmail.com>
[sboyd@codeaurora.org: Use goto instead]
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 7001ec56
...@@ -2641,7 +2641,7 @@ void clk_unregister(struct clk *clk) ...@@ -2641,7 +2641,7 @@ void clk_unregister(struct clk *clk)
if (clk->core->ops == &clk_nodrv_ops) { if (clk->core->ops == &clk_nodrv_ops) {
pr_err("%s: unregistered clock: %s\n", __func__, pr_err("%s: unregistered clock: %s\n", __func__,
clk->core->name); clk->core->name);
return; goto unlock;
} }
/* /*
* Assign empty clock ops for consumers that might still hold * Assign empty clock ops for consumers that might still hold
...@@ -2667,7 +2667,7 @@ void clk_unregister(struct clk *clk) ...@@ -2667,7 +2667,7 @@ void clk_unregister(struct clk *clk)
pr_warn("%s: unregistering prepared clock: %s\n", pr_warn("%s: unregistering prepared clock: %s\n",
__func__, clk->core->name); __func__, clk->core->name);
kref_put(&clk->core->ref, __clk_release); kref_put(&clk->core->ref, __clk_release);
unlock:
clk_prepare_unlock(); clk_prepare_unlock();
} }
EXPORT_SYMBOL_GPL(clk_unregister); EXPORT_SYMBOL_GPL(clk_unregister);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment