summaryrefslogtreecommitdiff
path: root/drivers
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
parent6bbad585fd694c25ac0809bbaf9f0f7bf58a6085 (diff)
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')
-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)