Commit d2c0077c authored by Felipe Contreras's avatar Felipe Contreras Committed by Anton Vorontsov

isp1704_charger: Fix probe error path

We enable power, but don't disable it in case of an error.
Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment