rtc: armada38x: add range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 24 Sep 2018 14:25:35 +0000 (16:25 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 28 Sep 2018 12:21:02 +0000 (14:21 +0200)
The RTC is a 32bit seconds counter.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-armada38x.c

index b74338d6dde60fe554b35838a03d9dea4fe7bd82..d0278ad0a7f9c2d288a1c48b8d28bf438357419c 100644 (file)
@@ -577,6 +577,8 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev)
        /* Update RTC-MBUS bridge timing parameters */
        rtc->data->update_mbus_timing(rtc);
 
+       rtc->rtc_dev->range_max = U32_MAX;
+
        ret = rtc_register_device(rtc->rtc_dev);
        if (ret)
                dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);