forked from Minki/linux
rtc: armada38x: add range
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>
This commit is contained in:
parent
7d61cbb945
commit
ef2a7176c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user