Skip to content

Commit

Permalink
regulator: Assign return value of mc13xxx_reg_rmw to ret
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Liam Girdwood committed Jan 12, 2011
1 parent 1130e5b commit 923430c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/mc13892-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
if (ret)
goto err_free;

mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5,
ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5,
MC13892_SWITCHERS5_SW3MODE_M |
MC13892_SWITCHERS5_SW4MODE_M,
MC13892_SWITCHERS5_SW3MODE_AUTO |
Expand Down

0 comments on commit 923430c

Please sign in to comment.