aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mc13892-regulator.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-10 04:52:59 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-10 04:52:59 -0400
commitb920eb41a8241c54efbbd4f2ed6d074f497b0d9e (patch)
tree5941091817e932add192f8e58dc88d483322e214 /drivers/regulator/mc13892-regulator.c
parenta9d5801041eecc7baceff49a28e82f91f207a961 (diff)
parent0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff)
Merge tag 'v3.4-rc2' into regulator-drivers
Linux 3.4-rc2 contains some fixes that further patches depend upon.
Diffstat (limited to 'drivers/regulator/mc13892-regulator.c')
-rw-r--r--drivers/regulator/mc13892-regulator.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c
index 6622228a0d86..970a233dbe46 100644
--- a/drivers/regulator/mc13892-regulator.c
+++ b/drivers/regulator/mc13892-regulator.c
@@ -544,7 +544,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
544 mc13xxx_lock(mc13892); 544 mc13xxx_lock(mc13892);
545 ret = mc13xxx_reg_read(mc13892, MC13892_REVISION, &val); 545 ret = mc13xxx_reg_read(mc13892, MC13892_REVISION, &val);
546 if (ret) 546 if (ret)
547 goto err_free; 547 goto err_unlock;
548 548
549 /* enable switch auto mode */ 549 /* enable switch auto mode */
550 if ((val & 0x0000FFFF) == 0x45d0) { 550 if ((val & 0x0000FFFF) == 0x45d0) {
@@ -554,7 +554,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
554 MC13892_SWITCHERS4_SW1MODE_AUTO | 554 MC13892_SWITCHERS4_SW1MODE_AUTO |
555 MC13892_SWITCHERS4_SW2MODE_AUTO); 555 MC13892_SWITCHERS4_SW2MODE_AUTO);
556 if (ret) 556 if (ret)
557 goto err_free; 557 goto err_unlock;
558 558
559 ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5, 559 ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5,
560 MC13892_SWITCHERS5_SW3MODE_M | 560 MC13892_SWITCHERS5_SW3MODE_M |
@@ -562,7 +562,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
562 MC13892_SWITCHERS5_SW3MODE_AUTO | 562 MC13892_SWITCHERS5_SW3MODE_AUTO |
563 MC13892_SWITCHERS5_SW4MODE_AUTO); 563 MC13892_SWITCHERS5_SW4MODE_AUTO);
564 if (ret) 564 if (ret)
565 goto err_free; 565 goto err_unlock;
566 } 566 }
567 mc13xxx_unlock(mc13892); 567 mc13xxx_unlock(mc13892);
568 568
@@ -607,10 +607,10 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
607err: 607err:
608 while (--i >= 0) 608 while (--i >= 0)
609 regulator_unregister(priv->regulators[i]); 609 regulator_unregister(priv->regulators[i]);
610 return ret;
610 611
611err_free: 612err_unlock:
612 mc13xxx_unlock(mc13892); 613 mc13xxx_unlock(mc13892);
613
614 return ret; 614 return ret;
615} 615}
616 616