Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 177730
b: refs/heads/master
c: eb143ac
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Liam Girdwood committed Dec 17, 2009
1 parent f046d08 commit 4deecc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: fa2984d4691c96367d6666694ecc6744135174c6
refs/heads/master: eb143ac1b9f56ca9c6dc782d795acda1f60c5fd2
4 changes: 2 additions & 2 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ int regulator_bulk_enable(int num_consumers,

err:
printk(KERN_ERR "Failed to enable %s: %d\n", consumers[i].supply, ret);
for (i = 0; i < num_consumers; i++)
for (--i; i >= 0; --i)
regulator_disable(consumers[i].consumer);

return ret;
Expand Down Expand Up @@ -2013,7 +2013,7 @@ int regulator_bulk_disable(int num_consumers,
err:
printk(KERN_ERR "Failed to disable %s: %d\n", consumers[i].supply,
ret);
for (i = 0; i < num_consumers; i++)
for (--i; i >= 0; --i)
regulator_enable(consumers[i].consumer);

return ret;
Expand Down

0 comments on commit 4deecc9

Please sign in to comment.