Re: [PATCH] rtc: pxa: fix possible race condition

From: Robert Jarzmik
Date: Wed Aug 23 2017 - 15:33:01 EST


Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx> writes:

> 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().
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxxxxxxxxx>
Acked-by: Robert Jarzmik <robert.jarzmik@xxxxxxx>

Cheers.

--
Robert