diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/bq24190_charger.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index 881f481d5f14..a4f08492abeb 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -1404,15 +1404,17 @@ static int bq24190_probe(struct i2c_client *client, out4: bq24190_sysfs_remove_group(bdi); + out3: power_supply_unregister(bdi->battery); + out2: power_supply_unregister(bdi->charger); + out1: pm_runtime_disable(dev); if (bdi->gpio_int) gpio_free(bdi->gpio_int); - return ret; } |