Patchwork RTC: rtc-omap.c correct 24 hour initialisation

login
register
mail settings
Submitter Bob Dunlop
Date June 8, 2011, 8:36 a.m.
Message ID <20110608083606.GA11032@xyzzy.org.uk>
Download mbox | patch
Permalink /patch/99373/
State New
Headers show

Comments

Bob Dunlop - June 8, 2011, 8:36 a.m.
Just a one line bit name correction for enabling 24 hour mode operation.

Signed-off-by: Bob Dunlop <bob.dunlop@xyzzy.org.uk>

Patch

--- linux-2.6-arm/drivers/rtc/rtc-omap.c-orig	2011-06-07 16:19:11.000000000 +0100
+++ linux-2.6-arm/drivers/rtc/rtc-omap.c	2011-06-07 16:49:58.000000000 +0100
@@ -368,7 +368,7 @@ 
 		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_MODE_12_24|OMAP_RTC_CTRL_AUTO_COMP);
 	new_ctrl |= OMAP_RTC_CTRL_STOP;
 
 	/* BOARD-SPECIFIC CUSTOMIZATION CAN GO HERE: