isp1704_charger: Fix probe error path

We enable power, but don't disable it in case of an error.

Signed-off-by: Felipe Contreras <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
Felipe Contreras 2012-02-01 03:03:47 +02:00 • committed by Anton Vorontsov
commit d2c0077c54

View file

@ -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;
}