Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

rtc: st-lpc: add range

parent d482510f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -258,6 +258,8 @@ static int st_rtc_probe(struct platform_device *pdev)
	platform_set_drvdata(pdev, rtc);

	rtc->rtc_dev->ops = &st_rtc_ops;
	rtc->rtc_dev->range_max = U64_MAX;
	do_div(rtc->rtc_dev->range_max, rtc->clkrate);

	ret = rtc_register_device(rtc->rtc_dev);
	if (ret) {