rtc: armada38x: add range

The RTC is a 32bit seconds counter.

Signed-off-by: Alexandre Belloni <[email protected]>
Tested-by: Gregory CLEMENT <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
Alexandre Belloni 2018-09-24 16:25:35 +02:00
commit ef2a7176c8

View 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);