summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-12-28 23:14:47 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-12-28 23:14:47 -0800
commitc0208a33cbc428f66b446f5dd16c91fb76aaab88 (patch)
tree725bd471b26195ce67e19740f28b853500c5d7c4
parent4f2382f380dec67f795ccde0f3b2e3fa686a4bbc (diff)
parent756efe131088b6e6e7f0124ff9c4e1f0165d3140 (diff)
downloadlinux-c0208a33cbc428f66b446f5dd16c91fb76aaab88.tar.gz
linux-c0208a33cbc428f66b446f5dd16c91fb76aaab88.tar.bz2
linux-c0208a33cbc428f66b446f5dd16c91fb76aaab88.zip
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fix from Stephen Boyd: "One more fix for the runtime PM clk patches. We're calling a runtime PM API that may schedule from somewhere that we can't do that. We change to the async version of pm_runtime_put() to fix it" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: use atomic runtime pm api in clk_core_is_enabled
-rw-r--r--drivers/clk/clk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 8a1860a36c77..b56c11f51baf 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -220,7 +220,8 @@ static bool clk_core_is_enabled(struct clk_core *core)
ret = core->ops->is_enabled(core->hw);
done:
- clk_pm_runtime_put(core);
+ if (core->dev)
+ pm_runtime_put(core->dev);
return ret;
}