Merge back earlier ACPICA-related changes for 5.10.
[linux-2.6-microblaze.git] / drivers / rtc / rtc-cpcap.c
index a603f1f..800667d 100644 (file)
@@ -261,7 +261,7 @@ static int cpcap_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(rtc->rtc_dev);
 
        rtc->rtc_dev->ops = &cpcap_rtc_ops;
-       rtc->rtc_dev->range_max = (1 << 14) * SECS_PER_DAY - 1;
+       rtc->rtc_dev->range_max = (timeu64_t) (DAY_MASK + 1) * SECS_PER_DAY - 1;
 
        err = cpcap_get_vendor(dev, rtc->regmap, &rtc->vendor);
        if (err)