projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee7930
)
ARM: OMAP: Add sanity check to clk_disable
author
Juha Yrjola
<juha.yrjola@solidboot.com>
Mon, 25 Sep 2006 09:41:47 +0000
(12:41 +0300)
committer
Tony Lindgren
<tony@atomide.com>
Mon, 25 Sep 2006 09:41:47 +0000
(12:41 +0300)
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>
arch/arm/plat-omap/clock.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/plat-omap/clock.c
b/arch/arm/plat-omap/clock.c
index 7f45c7c3e673d1898902fbac743de5e7cb655fd8..4abf2714f2d9f9be9de5b9bbe83441b41cdbd2dd 100644
(file)
--- 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);