Commit ef2a7176 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: armada38x: add range



The RTC is a 32bit seconds counter.

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 7d61cbb9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);