rtc: jz4740: Use readl_poll_timeout
authorPaul Cercueil <paul@crapouillou.net>
Sun, 29 Jan 2023 12:04:40 +0000 (12:04 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 9 Feb 2023 22:37:59 +0000 (23:37 +0100)
commitd644b133f78d6d8efd36f7b1703bebca09036f0b
tree253c0143ea103a39d2d72dcf19199aec47727f58
parent4737a703528c769c4fde6b68462f656f91f4ad99
rtc: jz4740: Use readl_poll_timeout

Use readl_poll_timeout() from <iopoll.h> instead of using custom poll
loops.

The timeout settings are different, but that shouldn't be much of a
problem. Instead of polling 10000 times in a close loop, it polls for
one millisecond.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20230129120442.22858-3-paul@crapouillou.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-jz4740.c