Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298577
b: refs/heads/master
c: 5777d9b
h: refs/heads/master
i:
  298575: 6e1c40d
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Mar 26, 2012
1 parent 000e391 commit df22a71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 09bf14b901f2c1908b6a72fe934457acdd1fa430
refs/heads/master: 5777d9b34aec841429ddade56403b3f53a821a1d
10 changes: 5 additions & 5 deletions trunk/drivers/regulator/mc13892-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
mc13xxx_lock(mc13892);
ret = mc13xxx_reg_read(mc13892, MC13892_REVISION, &val);
if (ret)
goto err_free;
goto err_unlock;

/* enable switch auto mode */
if ((val & 0x0000FFFF) == 0x45d0) {
Expand All @@ -562,15 +562,15 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
MC13892_SWITCHERS4_SW1MODE_AUTO |
MC13892_SWITCHERS4_SW2MODE_AUTO);
if (ret)
goto err_free;
goto err_unlock;

ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5,
MC13892_SWITCHERS5_SW3MODE_M |
MC13892_SWITCHERS5_SW4MODE_M,
MC13892_SWITCHERS5_SW3MODE_AUTO |
MC13892_SWITCHERS5_SW4MODE_AUTO);
if (ret)
goto err_free;
goto err_unlock;
}
mc13xxx_unlock(mc13892);

Expand Down Expand Up @@ -612,10 +612,10 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
err:
while (--i >= 0)
regulator_unregister(priv->regulators[i]);
return ret;

err_free:
err_unlock:
mc13xxx_unlock(mc13892);

return ret;
}

Expand Down

0 comments on commit df22a71

Please sign in to comment.