power: isl9519q: fix unregistering in probe
When something fails in the probe function the isl charger should
unregister from msm_charger. It mistakenly registers again.
Fix it.
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
diff --git a/drivers/power/isl9519q.c b/drivers/power/isl9519q.c
index 4954a45..2da4e54 100644
--- a/drivers/power/isl9519q.c
+++ b/drivers/power/isl9519q.c
@@ -427,7 +427,7 @@
free_irq:
free_irq(client->irq, NULL);
unregister:
- msm_charger_register(&isl_chg->adapter_hw_chg);
+ msm_charger_unregister(&isl_chg->adapter_hw_chg);
free_gpio:
gpio_free(pdata->valid_n_gpio);
free_isl_chg: