Commit 8ac5b7c5 authored by Uwe Kleine-König's avatar Uwe Kleine-König

imx: WARN in clk_disable if the clock isn't enabled

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
parent 66ac2f28
...@@ -56,6 +56,7 @@ static void __clk_disable(struct clk *clk) ...@@ -56,6 +56,7 @@ static void __clk_disable(struct clk *clk)
__clk_disable(clk->parent); __clk_disable(clk->parent);
__clk_disable(clk->secondary); __clk_disable(clk->secondary);
WARN_ON(!clk->usecount);
if (!(--clk->usecount) && clk->disable) if (!(--clk->usecount) && clk->disable)
clk->disable(clk); clk->disable(clk);
} }
......
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