From: Felipe Contreras Date: Wed, 1 Feb 2012 01:03:47 +0000 (+0200) Subject: isp1704_charger: Fix probe error path X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d2c0077c54794d668b3639079a4262a52088d5e2;p=mv-sheeva.git isp1704_charger: Fix probe error path We enable power, but don't disable it in case of an error. Signed-off-by: Felipe Contreras Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c index b806667b59a..cce6211b805 100644 --- a/drivers/power/isp1704_charger.c +++ b/drivers/power/isp1704_charger.c @@ -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; }