rtc: isl1208: enable interrupt after context preparation
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 5 Mar 2018 10:43:53 +0000 (10:43 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:53 +0000 (14:20 +0100)
commit9d327c2d929161a6ca4d7ca0672414cc72100659
treeb1000f790a34fe93aa371f009be230f1ef88c97a
parent72dd71f0dae47183efdf92279927ff26f0ed9f3f
rtc: isl1208: enable interrupt after context preparation

The interrupt handler got enabled very early. If the interrupt cause is
triggering immediately before the context is fully prepared. This can
lead to undefined behaviour. Therefor we move the interrupt enable code
to the end of the probe function.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-isl1208.c