power: supply: twl4030-charger: move irq allocation to just before irqs are enabled
authorH. Nikolaus Schaller <hns@goldelico.com>
Mon, 3 Jul 2017 16:37:10 +0000 (18:37 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 3 Jul 2017 17:15:00 +0000 (19:15 +0200)
commit3950c95e2c39b998abcc9702005b5ba7c7f70d32
tree5273eea5a079f0146b79a499cf281bc6e32eb7af
parentbfa953d336cdd713f6968c85ca820ef22333dc35
power: supply: twl4030-charger: move irq allocation to just before irqs are enabled

And initialize workers and notifiers as soon as possible.

This avoids a potential race if irqs are enabled and triggered too early
before the worker is properly set up.

Suggested-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/twl4030_charger.c