mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 05:11:48 +00:00
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: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
060711f527
commit
e5fe3c3e4c
@ -206,6 +206,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
|
||||
platform_set_drvdata(pdev, rtc);
|
||||
|
||||
rtc->rtc_dev->ops = &dc_rtc_ops;
|
||||
rtc->rtc_dev->range_max = U32_MAX;
|
||||
|
||||
return rtc_register_device(rtc->rtc_dev);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user