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

rtc: digicolor: set range



While the range of REFERENCE + TIME is actually 33 bits, the counter
itself (TIME) is a 32-bits seconds counter.

Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 060711f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -206,6 +206,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
	platform_set_drvdata(pdev, rtc);
	platform_set_drvdata(pdev, rtc);


	rtc->rtc_dev->ops = &dc_rtc_ops;
	rtc->rtc_dev->ops = &dc_rtc_ops;
	rtc->rtc_dev->range_max = U32_MAX;


	return rtc_register_device(rtc->rtc_dev);
	return rtc_register_device(rtc->rtc_dev);
}
}