aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJuha Yrjola <juha.yrjola@solidboot.com>2006-09-25 12:41:47 +0300
committerTony Lindgren <tony@atomide.com>2006-09-25 12:41:47 +0300
commitdee45648a5e2f3075c51f5d6b5da65b32235d3f9 (patch)
tree17b6fd404b66e60d1486d4103462f6ceda0b04e7 /arch
parentbee7930f4aa501de4e3c793640c3af31fd3867e2 (diff)
ARM: OMAP: Add sanity check to clk_disable
BUG() if the clock use count is already zero. Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/clock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 7f45c7c3e67..4abf2714f2d 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -100,6 +100,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);