Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302285
b: refs/heads/master
c: b1a8683
h: refs/heads/master
i:
  302283: 6677d0f
v: v3
  • Loading branch information
Mark Brown committed May 14, 2012
1 parent d6f5090 commit c8dad3f
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: f0b067d9b6474e5309dd47ab30264cd0a48d4963
refs/heads/master: b1a868310e7024650918119d292129446b2f8336
5 changes: 2 additions & 3 deletions trunk/drivers/regulator/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3160,8 +3160,7 @@ regulator_register(const struct regulator_desc *regulator_desc,
goto scrub;

/* Enable supply if rail is enabled */
if (rdev->desc->ops->is_enabled &&
rdev->desc->ops->is_enabled(rdev)) {
if (_regulator_is_enabled(rdev)) {
ret = regulator_enable(rdev->supply);
if (ret < 0)
goto scrub;
Expand Down Expand Up @@ -3293,7 +3292,7 @@ int regulator_suspend_finish(void)
goto unlock;
if (!ops->disable)
goto unlock;
if (ops->is_enabled && !ops->is_enabled(rdev))
if (!_regulator_is_enabled(rdev))
goto unlock;

error = ops->disable(rdev);
Expand Down

0 comments on commit c8dad3f

Please sign in to comment.