Skip to content

Commit

Permalink
isp1704_charger: Fix probe error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Anton Vorontsov committed Mar 26, 2012
1 parent f7bae49 commit d2c0077
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/isp1704_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ static int __devinit isp1704_charger_probe(struct platform_device *pdev)

dev_err(&pdev->dev, "failed to register isp1704 with error %d\n", ret);

isp1704_charger_set_power(isp, 0);
return ret;
}

Expand Down

0 comments on commit d2c0077

Please sign in to comment.