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:
Родитель
7d61cbb945
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче