]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/rtc/rtc-omap.c
rtc-omap: fix initialization of control register
[~shefty/rdma-dev.git] / drivers / rtc / rtc-omap.c
index bcae8dd41496ab089d43e6639fedfd4272dca035..7789002bdd5c1af65f7c6bff95649e9e72d89db1 100644 (file)
@@ -368,7 +368,7 @@ static int __init omap_rtc_probe(struct platform_device *pdev)
                pr_info("%s: already running\n", pdev->name);
 
        /* force to 24 hour mode */
-       new_ctrl = reg & ~(OMAP_RTC_CTRL_SPLIT|OMAP_RTC_CTRL_AUTO_COMP);
+       new_ctrl = reg & (OMAP_RTC_CTRL_SPLIT|OMAP_RTC_CTRL_AUTO_COMP);
        new_ctrl |= OMAP_RTC_CTRL_STOP;
 
        /* BOARD-SPECIFIC CUSTOMIZATION CAN GO HERE: