clk: use atomic runtime pm api in clk_core_is_enabled
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 22 Dec 2017 09:46:04 +0000 (17:46 +0800)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:55:50 +0000 (14:55 +0900)
commitb411a748a6928ed5c38d410c260637a7917e74c0
treedb4976ea020b14d202977462374fdae8e4abfbac
parent87f8887a4efe1942855c677b0b68fa847bf10312
clk: use atomic runtime pm api in clk_core_is_enabled

Current clk_pm_runtime_put is using pm_runtime_put_sync which
is not safe to be called in clk_core_is_enabled as it should
be able to run in atomic context.

Thus use pm_runtime_put instead which is atomic safe.

Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Fixes: 9a34b45397e5 ("clk: Add support for runtime PM")
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c