Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282201
b: refs/heads/master
c: b2296bd
h: refs/heads/master
i:
  282199: 2367972
v: v3
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed Jan 2, 2012
1 parent dd584a3 commit 058e990
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4fef21eaacb9d739f0120c930c78dac4f6875b9f
refs/heads/master: b2296bd43e781976743354c668a356b0df98e1da
8 changes: 8 additions & 0 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2802,6 +2802,14 @@ struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
ret = set_supply(rdev, r);
if (ret < 0)
goto scrub;

/* Enable supply if rail is enabled */
if (rdev->desc->ops->is_enabled &&
rdev->desc->ops->is_enabled(rdev)) {
ret = regulator_enable(rdev->supply);
if (ret < 0)
goto scrub;
}
}

/* add consumers devices */
Expand Down

0 comments on commit 058e990

Please sign in to comment.