diff mbox

RTC: rtc-omap.c correct 24 hour initialisation

Message ID 20110608083606.GA11032@xyzzy.org.uk
State Rejected
Headers show

Commit Message

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

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

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: