rtc: au1xxx: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 00:59:57 +0000 (01:59 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:09 +0000 (11:12 +0100)
The Alchemy counter0 is a 32bit seconds counter.

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

index 73aeb15..e186fb5 100644 (file)
@@ -100,6 +100,7 @@ static int au1xtoy_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(rtcdev);
 
        rtcdev->ops = &au1xtoy_rtc_ops;
+       rtcdev->range_max = U32_MAX;
 
        platform_set_drvdata(pdev, rtcdev);