summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/bq2419x-charger.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/power/bq2419x-charger.c b/drivers/power/bq2419x-charger.c
index a84fb5ba596d..954302455727 100644
--- a/drivers/power/bq2419x-charger.c
+++ b/drivers/power/bq2419x-charger.c
@@ -1646,7 +1646,10 @@ static void bq2419x_shutdown(struct i2c_client *client)
int ret;
int next_poweron_time = 0;
- if (!bq2419x->battery_presense || !bq2419x->cable_connected)
+ if (!bq2419x->battery_presense)
+ return;
+
+ if (!bq2419x->cable_connected)
goto end;
if (bq2419x->in_current_limit <= 500)