mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 00:56:45 +07: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