From d2c0077c54794d668b3639079a4262a52088d5e2 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Wed, 1 Feb 2012 03:03:47 +0200 Subject: [PATCH] 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 --- drivers/power/isp1704_charger.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.20.1