]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
rtc: puv3: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 01:02:38 +0000 (02:02 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:11 +0000 (11:12 +0100)
This RTC is a 32bit seconds counter.

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

index 89ff713163dd57711d518e49958a014f63b95e1b..3029a52a501ec6197ded67848b288a3dc2d3e7f2 100644 (file)
@@ -234,6 +234,7 @@ static int puv3_rtc_probe(struct platform_device *pdev)
 
        /* register RTC and exit */
        rtc->ops = &puv3_rtcops;
+       rtc->range_max = U32_MAX;
        ret = rtc_register_device(rtc);
        if (ret)
                goto err_nortc;