rtc: lpc32xx: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 9 Apr 2019 10:16:27 +0000 (12:16 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 12 Apr 2019 10:23:20 +0000 (12:23 +0200)
The LPC32xx RTC is a 32bit second counter.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-lpc32xx.c

index 295dc6ddac6dc669d208b9e7233a94746634d929..f9e899fc488922defab68e9e7f40b6b5d07c02c9 100644 (file)
@@ -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)