Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323312
b: refs/heads/master
c: 2b5a24a
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Sep 8, 2012
1 parent 4a521fa commit b76fa93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f2889e650a8dbd51644997aef7bae71d6ac4d423
refs/heads/master: 2b5a24a01df12fbfa3e702ad7efae27bcb852e33
3 changes: 3 additions & 0 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,6 +1724,9 @@ int regulator_disable_deferred(struct regulator *regulator, int ms)
if (regulator->always_on)
return 0;

if (!ms)
return regulator_disable(regulator);

mutex_lock(&rdev->mutex);
rdev->deferred_disables++;
mutex_unlock(&rdev->mutex);
Expand Down

0 comments on commit b76fa93

Please sign in to comment.