From: Alexandre Belloni Date: Fri, 19 Apr 2019 08:00:01 +0000 (+0200) Subject: rtc: ep93xx: set range X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2d4fc6df77d8effe07a66ec24c093b8c9f0fb998;p=openwrt%2Fstaging%2Fblogic.git rtc: ep93xx: set range The ep93xx RTC is a 32-bit seconds counter. Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index 27417b4a8095..32d7b3ec816d 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -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)