summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-lpc32xx.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-09 12:16:27 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-12 12:23:20 +0200
commit3a13426908a387555bdfa84c6be3147a2cd31375 (patch)
tree68a3072318eac9aa14e8818777d912dac8df11af /drivers/rtc/rtc-lpc32xx.c
parent6bbad585fd694c25ac0809bbaf9f0f7bf58a6085 (diff)
downloadlinux-3a13426908a387555bdfa84c6be3147a2cd31375.tar.gz
linux-3a13426908a387555bdfa84c6be3147a2cd31375.tar.bz2
linux-3a13426908a387555bdfa84c6be3147a2cd31375.zip
rtc: lpc32xx: set range
The LPC32xx RTC is a 32bit second counter. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-lpc32xx.c')
-rw-r--r--drivers/rtc/rtc-lpc32xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-lpc32xx.c b/drivers/rtc/rtc-lpc32xx.c
index 295dc6ddac6d..f9e899fc4889 100644
--- a/drivers/rtc/rtc-lpc32xx.c
+++ b/drivers/rtc/rtc-lpc32xx.c
@@ -259,6 +259,7 @@ static int lpc32xx_rtc_probe(struct platform_device *pdev)
return PTR_ERR(rtc->rtc);
rtc->rtc->ops = &lpc32xx_rtc_ops;
+ rtc->rtc->range_max = U32_MAX;
err = rtc_register_device(rtc->rtc);
if (err)