drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield
authorTony Prisk <linux@prisktech.co.nz>
Fri, 4 Jan 2013 23:35:47 +0000 (15:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:03:49 +0000 (09:03 -0800)
commitafc0e69cd367175e058c3bcbe5cb624aad4df3e5
tree6b96a674dfb5b46ce21cb22cae3571129a932156
parent4a16c403b4eed0a8519969ede7617f616336570a
drivers/rtc/rtc-vt8500.c: correct handling of CR_24H bitfield

commit 532db570e5181abc8f4f7bfa6c77c69ec2240198 upstream.

Control register bitfield for 12H/24H mode is handled incorrectly.
Setting CR_24H actually enables 12H mode.  This patch renames the define
and changes the initialization code to correctly set 24H mode.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Cc: Edgar Toernig <froese@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-vt8500.c