Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282198
b: refs/heads/master
c: 32c78de
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Dec 29, 2011
1 parent 7b2cd3e commit b415ce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: bcda432194fc7c4a2dbe9d7146f00b4b21e66c8c
refs/heads/master: 32c78de8f17369def492ea3ddd785f0cc140af02
5 changes: 2 additions & 3 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,9 +985,8 @@ static int set_supply(struct regulator_dev *rdev,
rdev_info(rdev, "supplied by %s\n", rdev_get_name(supply_rdev));

rdev->supply = create_regulator(supply_rdev, &rdev->dev, "SUPPLY");
if (IS_ERR(rdev->supply)) {
err = PTR_ERR(rdev->supply);
rdev->supply = NULL;
if (rdev->supply == NULL) {
err = -ENOMEM;
return err;
}

Expand Down

0 comments on commit b415ce4

Please sign in to comment.