Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96848
b: refs/heads/master
c: 7cf9577
h: refs/heads/master
v: v3
  • Loading branch information
Tony Lindgren committed May 9, 2008
1 parent e83045e commit 50edd50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8d2eb8e56b93c69a30793f19ac1bc784398fbd5
refs/heads/master: 7cf95774190e423370945e116b07410c860407db
10 changes: 9 additions & 1 deletion trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,17 @@ void clk_disable(struct clk *clk)
return;

spin_lock_irqsave(&clockfw_lock, flags);
BUG_ON(clk->usecount == 0);
if (clk->usecount == 0) {
printk(KERN_ERR "Trying disable clock %s with 0 usecount\n",
clk->name);
WARN_ON(1);
goto out;
}

if (arch_clock->clk_disable)
arch_clock->clk_disable(clk);

out:
spin_unlock_irqrestore(&clockfw_lock, flags);
}
EXPORT_SYMBOL(clk_disable);
Expand Down

0 comments on commit 50edd50

Please sign in to comment.