From: Uwe Kleine-König Date: Wed, 13 Jan 2010 16:58:04 +0000 (+0100) Subject: imx: WARN in clk_disable if the clock isn't enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8ac5b7c5ec8d46ad273d37aaa0d6e1f9cd2b01d9;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git imx: WARN in clk_disable if the clock isn't enabled Signed-off-by: Uwe Kleine-König Cc: Sascha Hauer Cc: Russell King --- diff --git a/arch/arm/plat-mxc/clock.c b/arch/arm/plat-mxc/clock.c index 9e8fbd57495c..323ff8ccc877 100644 --- a/arch/arm/plat-mxc/clock.c +++ b/arch/arm/plat-mxc/clock.c @@ -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); }