diff options
Diffstat (limited to 'arch/arm/plat-mxc/clock.c')
-rw-r--r-- | arch/arm/plat-mxc/clock.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
56 | __clk_disable(clk->parent); | 56 | __clk_disable(clk->parent); |
57 | __clk_disable(clk->secondary); | 57 | __clk_disable(clk->secondary); |
58 | 58 | ||
59 | WARN_ON(!clk->usecount); | ||
59 | if (!(--clk->usecount) && clk->disable) | 60 | if (!(--clk->usecount) && clk->disable) |
60 | clk->disable(clk); | 61 | clk->disable(clk); |
61 | } | 62 | } |