提交 d2c0077c 编写于 作者: F Felipe Contreras 提交者: Anton Vorontsov

isp1704_charger: Fix probe error path

We enable power, but don't disable it in case of an error.
Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: NAnton Vorontsov <anton.vorontsov@linaro.org>
上级 f7bae49a
......@@ -470,6 +470,7 @@ static int __devinit isp1704_charger_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "failed to register isp1704 with error %d\n", ret);
isp1704_charger_set_power(isp, 0);
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册