diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2018-03-05 11:43:53 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 14:20:53 +0100 |
commit | 9d327c2d929161a6ca4d7ca0672414cc72100659 (patch) | |
tree | b1000f790a34fe93aa371f009be230f1ef88c97a /drivers/rtc/rtc-mc146818-lib.c | |
parent | rtc: cros-ec: return -ETIME when refused to set alarms in the past (diff) | |
download | linux-9d327c2d929161a6ca4d7ca0672414cc72100659.tar.xz linux-9d327c2d929161a6ca4d7ca0672414cc72100659.zip |
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>
Diffstat (limited to 'drivers/rtc/rtc-mc146818-lib.c')
0 files changed, 0 insertions, 0 deletions