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 b806667..cce6211 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;
 }