Merge tag 'fuse-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszered...
[linux-2.6-microblaze.git] / drivers / rtc / rtc-cmos.c
index c633319..c5bcd2a 100644 (file)
@@ -868,6 +868,9 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
        if (retval)
                goto cleanup2;
 
+       /* Set the sync offset for the periodic 11min update correct */
+       cmos_rtc.rtc->set_offset_nsec = NSEC_PER_SEC / 2;
+
        /* export at least the first block of NVRAM */
        nvmem_cfg.size = address_space - NVRAM_OFFSET;
        if (rtc_nvmem_register(cmos_rtc.rtc, &nvmem_cfg))