Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302099
b: refs/heads/master
c: 854ccba
h: refs/heads/master
i:
  302097: e75c192
  302095: 1aca4ed
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 16, 2012
1 parent 2730737 commit edf20b6
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: 8ac0e95d6467ced054565312ecdf0a55a5333c64
refs/heads/master: 854ccbaee7e48734936690a3fd4817c57e98aaad
3 changes: 3 additions & 0 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,9 @@ int regulator_set_optimum_mode(struct regulator *regulator, int uA_load)
*/
ret = -EINVAL;

if (!rdev->desc->ops->set_mode)
goto out;

/* get output voltage */
output_uV = _regulator_get_voltage(rdev);
if (output_uV <= 0) {
Expand Down

0 comments on commit edf20b6

Please sign in to comment.