提交 923430cf 编写于 作者: A Axel Lin 提交者: Liam Girdwood

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: NAxel Lin <axel.lin@gmail.com>
Acked-by: NYong Shen <yong.shen@linaro.org>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
上级 1130e5b3
...@@ -550,7 +550,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev) ...@@ -550,7 +550,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
if (ret) if (ret)
goto err_free; goto err_free;
mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5, ret = mc13xxx_reg_rmw(mc13892, MC13892_SWITCHERS5,
MC13892_SWITCHERS5_SW3MODE_M | MC13892_SWITCHERS5_SW3MODE_M |
MC13892_SWITCHERS5_SW4MODE_M, MC13892_SWITCHERS5_SW4MODE_M,
MC13892_SWITCHERS5_SW3MODE_AUTO | MC13892_SWITCHERS5_SW3MODE_AUTO |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册