From: Alexandre Belloni Date: Sun, 3 Mar 2019 22:08:09 +0000 (+0100) Subject: rtc: tx4939: set range X-Git-Tag: v5.1-rc1~105^2~9 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e866cbdf6e775d14e0c7c3528b2d03ccc29647c1;hp=72d381974403018562ca7fa0fbc34d07202e7e1c;p=linux-2.6-block.git rtc: tx4939: set range The TX4939 RTC is a 48bit counter that counts two on every clock edge of 32.768 KHz oscillator clock so it counts 32bit seconds. Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-tx4939.c b/drivers/rtc/rtc-tx4939.c index 8497fceea27f..b405818933fb 100644 --- a/drivers/rtc/rtc-tx4939.c +++ b/drivers/rtc/rtc-tx4939.c @@ -276,6 +276,7 @@ static int __init tx4939_rtc_probe(struct platform_device *pdev) rtc->ops = &tx4939_rtc_ops; rtc->nvram_old_abi = true; + rtc->range_max = U32_MAX; pdata->rtc = rtc;