rtc: xgene: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 20 Mar 2019 12:32:28 +0000 (13:32 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:08 +0000 (10:07 +0200)
CCVR is a 32bit second counter.

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

index 2f741f4..e360f89 100644 (file)
@@ -205,6 +205,7 @@ static int xgene_rtc_probe(struct platform_device *pdev)
        /* HW does not support update faster than 1 seconds */
        pdata->rtc->uie_unsupported = 1;
        pdata->rtc->ops = &xgene_rtc_ops;
+       pdata->rtc->range_max = U32_MAX;
 
        ret = rtc_register_device(pdata->rtc);
        if (ret) {