diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-01-03 10:57:38 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-01-12 09:33:05 -0500 |
commit | 923430cfee112c5f8223a313f5ec148a27dfed7f (patch) | |
tree | 500492daf7dd9b24b017d2d07608579a5393839a /drivers/regulator | |
parent | 1130e5b3ff4a7f3f54a48d46e9d0d81b47765bd8 (diff) |
regulator: Assign return value of mc13xxx_reg_rmw to ret
Otherwise, we will not return error if write to MC13892_SWITCHERS5 failed.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Yong Shen <yong.shen@linaro.org>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/mc13892-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c index 16a053243f92..1b8f7398a4a8 100644 --- a/drivers/regulator/mc13892-regulator.c +++ b/drivers/regulator/mc13892-regulator.c | |||
@@ -550,7 +550,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev) | |||
550 | if (ret) | 550 | if (ret) |
551 | goto err_free; | 551 | goto err_free; |
552 | 552 | ||
553 | mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5, | 553 | ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5, |
554 | MC13892_SWITCHERS5_SW3MODE_M | | 554 | MC13892_SWITCHERS5_SW3MODE_M | |
555 | MC13892_SWITCHERS5_SW4MODE_M, | 555 | MC13892_SWITCHERS5_SW4MODE_M, |
556 | MC13892_SWITCHERS5_SW3MODE_AUTO | | 556 | MC13892_SWITCHERS5_SW3MODE_AUTO | |