Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272417
b: refs/heads/master
c: d1685e4
h: refs/heads/master
i:
  272415: 4be6788
v: v3
  • Loading branch information
Heiko Stübner authored and Mark Brown committed Oct 14, 2011
1 parent c8846ce commit 50dc26b
Show file tree
Hide file tree
Showing 2 changed files with 2 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: d162b3c54b206ee64c87651309ed4442846cafbc
refs/heads/master: d1685e4e2c3854782272f32b71f2f3eff5c6e0d0
2 changes: 1 addition & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ int regulator_enable(struct regulator *regulator)
ret = _regulator_enable(rdev);
mutex_unlock(&rdev->mutex);

if (ret != 0)
if (ret != 0 && rdev->supply)
regulator_disable(rdev->supply);

return ret;
Expand Down

0 comments on commit 50dc26b

Please sign in to comment.