Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165398
b: refs/heads/master
c: a7433cf
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij authored and Liam Girdwood committed Sep 22, 2009
1 parent 30af7c6 commit 0ecf230
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: 9e108d33edcb88bac3db39ba1683fc2c0591d7d4
refs/heads/master: a7433cff9ed8e7982de8e0f210f0325d0f3d1949
3 changes: 2 additions & 1 deletion trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,11 +1236,12 @@ static int _regulator_enable(struct regulator_dev *rdev)
} else {
return -EINVAL;
}
} else {
} else if (ret < 0) {
printk(KERN_ERR "%s: is_enabled() failed for %s: %d\n",
__func__, rdev->desc->name, ret);
return ret;
}
/* Fallthrough on positive return values - already enabled */
}

rdev->use_count++;
Expand Down

0 comments on commit 0ecf230

Please sign in to comment.