rtc: sa1100: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 01:01:45 +0000 (02:01 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
The SA1100 RTC is a 32bit seconds counter.

Link: https://lore.kernel.org/r/20200306010146.39762-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sa1100.c

index 97c3525..82a9d4a 100644 (file)
@@ -212,6 +212,7 @@ int sa1100_rtc_init(struct platform_device *pdev, struct sa1100_rtc *info)
 
        info->rtc->ops = &sa1100_rtc_ops;
        info->rtc->max_user_freq = RTC_FREQ;
+       info->rtc->range_max = U32_MAX;
 
        ret = rtc_register_device(info->rtc);
        if (ret) {