Skip to content

Commit

Permalink
power: bq24190_charger: enable_irq() at end of probe()
Browse files Browse the repository at this point in the history
Persistent variables are uninitialized before then.
  • Loading branch information
networkimprov authored Nov 30, 2016
1 parent c0db05c commit 042af75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/power/bq24190_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,6 +1372,7 @@ static int bq24190_probe(struct i2c_client *client,
return -EINVAL;
}

irq_set_status_flags(bdi->irq, IRQ_NOAUTOEN);
ret = devm_request_threaded_irq(dev, bdi->irq, NULL,
bq24190_irq_handler_thread,
IRQF_TRIGGER_RISING | IRQF_ONESHOT,
Expand Down Expand Up @@ -1417,6 +1418,7 @@ static int bq24190_probe(struct i2c_client *client,
}

bdi->initialized = 1;
enable_irq(bdi->irq);

return 0;

Expand Down

0 comments on commit 042af75

Please sign in to comment.