aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/isp1704_charger.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-02-01 03:03:47 +0200
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-03-26 20:41:00 +0400
commitd2c0077c54794d668b3639079a4262a52088d5e2 (patch)
tree38e2e440aec4ac502d3f58160f2c8703f9bd2c81 /drivers/power/isp1704_charger.c
parentlp8727_charger: Correct typos on the comment (diff)
downloadlinux-dev-d2c0077c54794d668b3639079a4262a52088d5e2.tar.xz
linux-dev-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/power/isp1704_charger.c')
-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;
}