Commit ec07d4ec authored by Juha Yrjola's avatar Juha Yrjola

ARM: OMAP: Add sanity check to clk_disable

BUG() if the clock use count is already zero.
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@solidboot.com>
parent c96f7f53
......@@ -101,6 +101,7 @@ void clk_disable(struct clk *clk)
return;
spin_lock_irqsave(&clockfw_lock, flags);
BUG_ON(clk->usecount == 0);
if (arch_clock->clk_disable)
arch_clock->clk_disable(clk);
spin_unlock_irqrestore(&clockfw_lock, flags);
......
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