power: supply: bq24190_charger: Install irq_handler_thread() at end of probe()
authorLiam Breck <liam@networkimprov.net>
Wed, 18 Jan 2017 17:26:50 +0000 (09:26 -0800)
committerSebastian Reichel <sre@kernel.org>
Fri, 20 Jan 2017 11:42:59 +0000 (12:42 +0100)
commitd62acc5ef0621463446091ebd7a345e06e9ab80c
tree899f40203c2c857f36b4349174a765821c5f0f70
parente05ad7e0741ce0505e1df157c62b22b95172bb97
power: supply: bq24190_charger: Install irq_handler_thread() at end of probe()

The device specific data is not fully initialized on
request_threaded_irq(). This may cause a crash when the IRQ handler
tries to reference them.

Fix the issue by installing IRQ handler at the end of the probe.

Fixes: d7bf353fd0aa3 ("bq24190_charger: Add support for TI BQ24190 Battery Charger")
Signed-off-by: Liam Breck <kernel@networkimprov.net>
Acked-by: Mark Greer <mgreer@animalcreek.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c