rtc: ep93xx: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 08:00:01 +0000 (10:00 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 19 Apr 2019 20:37:16 +0000 (22:37 +0200)
The ep93xx RTC is a 32-bit seconds counter.

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

index 27417b4a8095c1045decebfabbde6154c5d1cf89..32d7b3ec816d2cd2975cbf50c22fade891f0b5ad 100644 (file)
@@ -143,6 +143,7 @@ static int ep93xx_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(ep93xx_rtc->rtc);
 
        ep93xx_rtc->rtc->ops = &ep93xx_rtc_ops;
+       ep93xx_rtc->rtc->range_max = U32_MAX;
 
        err = rtc_add_group(ep93xx_rtc->rtc, &ep93xx_rtc_sysfs_files);
        if (err)