Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 923430cf authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Acked-by: default avatarYong Shen <yong.shen@linaro.org>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 1130e5b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 |