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)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 27 Dec 2017 01:34:03 +0000 (17:34 -0800)
commit756efe131088b6e6e7f0124ff9c4e1f0165d3140
tree9b6f57ac546ee543d41c14a1b13bd65d795ee4c4
parent61d2f2a05765a5f57149efbd93e3e81a83cbc2c1
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