提交 ef2a7176 编写于 作者: A Alexandre Belloni

rtc: armada38x: add range

The RTC is a 32bit seconds counter.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: NGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: NAlexandre Belloni <alexandre.belloni@bootlin.com>
上级 7d61cbb9
...@@ -577,6 +577,8 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev) ...@@ -577,6 +577,8 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev)
/* Update RTC-MBUS bridge timing parameters */ /* Update RTC-MBUS bridge timing parameters */
rtc->data->update_mbus_timing(rtc); rtc->data->update_mbus_timing(rtc);
rtc->rtc_dev->range_max = U32_MAX;
ret = rtc_register_device(rtc->rtc_dev); ret = rtc_register_device(rtc->rtc_dev);
if (ret) if (ret)
dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册