Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347381
b: refs/heads/master
c: 29f0667
h: refs/heads/master
i:
  347379: 860b49a
v: v3
  • Loading branch information
Jon Hunter authored and Paul Walmsley committed Dec 15, 2012
1 parent 3b7f9b2 commit ea44d09
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 8c197ccfb60032859a32381b2e4bd4d2b8fdd338
refs/heads/master: 29f0667f9239c2af48ef51c50b12c0250c65bb2a
3 changes: 2 additions & 1 deletion trunk/arch/arm/mach-omap2/clockdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,8 @@ int clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk)
spin_lock_irqsave(&clkdm->lock, flags);

/* corner case: disabling unused clocks */
if (__clk_get_enable_count(clk) == 0)
if ((__clk_get_enable_count(clk) == 0) &&
(atomic_read(&clkdm->usecount) == 0))
goto ccd_exit;

if (atomic_read(&clkdm->usecount) == 0) {
Expand Down

0 comments on commit ea44d09

Please sign in to comment.