Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191700
b: refs/heads/master
c: f5ca6d4
h: refs/heads/master
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Paul Mundt committed May 13, 2010
1 parent dffd37b commit c850383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 03c5ecd13cfe308a521e40e6dec6059314f3341b
refs/heads/master: f5ca6d4cbd49dbb6e179a71fa610eb321a3e9951
7 changes: 2 additions & 5 deletions trunk/drivers/sh/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,9 @@ void propagate_rate(struct clk *tclk)

static void __clk_disable(struct clk *clk)
{
if (clk->usecount == 0) {
printk(KERN_ERR "Trying disable clock %s with 0 usecount\n",
clk->name);
WARN_ON(1);
if (WARN(!clk->usecount, "Trying to disable clock %s with 0 usecount\n",
clk->name))
return;
}

if (!(--clk->usecount)) {
if (likely(clk->ops && clk->ops->disable))
Expand Down

0 comments on commit c850383

Please sign in to comment.