mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 00:11:22 +00:00
imx: WARN in clk_disable if the clock isn't enabled
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Sascha Hauer <kernel@pengutronix.de> Cc: Russell King <linux@arm.linux.org.uk>
This commit is contained in:
parent
66ac2f28b6
commit
8ac5b7c5ec
@ -56,6 +56,7 @@ static void __clk_disable(struct clk *clk)
|
||||
__clk_disable(clk->parent);
|
||||
__clk_disable(clk->secondary);
|
||||
|
||||
WARN_ON(!clk->usecount);
|
||||
if (!(--clk->usecount) && clk->disable)
|
||||
clk->disable(clk);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user