OSDN Git Service

rtc: pxa: fix possible race condition
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 21 Aug 2017 15:57:42 +0000 (17:57 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 24 Aug 2017 09:03:34 +0000 (11:03 +0200)
commit56c0c529848c853bc1049e271975917e8c9f4389
tree2dcefa0bf475eb1986c9c08c18a9da60c6df2335
parentbe8e2746462b11e92a882e45317fafcd2c0dc50b
rtc: pxa: fix possible race condition

pxa_rtc_open() registers the interrupt handler which will access the RTC
registers. However, pxa_rtc_open() is called before the register range is
ioremapped. Instead, call it after devm_ioremap().

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-pxa.c