summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-02-01 02:03:47 +0100
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 18:41:00 +0200
commitd2c0077c54794d668b3639079a4262a52088d5e2 (patch)
tree38e2e440aec4ac502d3f58160f2c8703f9bd2c81 /drivers
parentlp8727_charger: Correct typos on the comment (diff)
downloadlinux-d2c0077c54794d668b3639079a4262a52088d5e2.tar.xz
linux-d2c0077c54794d668b3639079a4262a52088d5e2.zip
isp1704_charger: Fix probe error path
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/isp1704_charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
index b806667b59ae..cce6211b8053 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;
}