]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
isp1704_charger: Fix probe error path
authorFelipe Contreras <felipe.contreras@gmail.com>
Wed, 1 Feb 2012 01:03:47 +0000 (03:03 +0200)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:00 +0000 (20:41 +0400)
We enable power, but don't disable it in case of an error.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/isp1704_charger.c

index b806667b59ae68639a43b1a52ed95c0ad4fce638..cce6211b80530287d8e28d48e9a59550fc844630 100644 (file)
@@ -470,6 +470,7 @@ fail0:
 
        dev_err(&pdev->dev, "failed to register isp1704 with error %d\n", ret);
 
+       isp1704_charger_set_power(isp, 0);
        return ret;
 }