RTC: rtc-cmos: Fix binary mode support
authorArnaud Patard <apatard@mandriva.com>
Thu, 29 Apr 2010 09:58:44 +0000 (11:58 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 21 May 2010 20:31:19 +0000 (21:31 +0100)
commit3804a89bfb84fb8849c72e3bbafddaee539b3430
tree4784730807dd2746363d95949fca45c8fc4971c0
parent893556e602d6d5d86ed401ff72bf63d8cfa4a9d0
RTC: rtc-cmos: Fix binary mode support

As a follow-up to the thread about RTC support for some Loongson 2E/2F
boards, this patch tries to address the "REVISIT"/"FIXME" comments about
rtc binary mode handling and allow rtc to work with rtc in binary mode.
I've also raised the message about 24-h mode not supported to warning
otherwise, one may end up with no rtc without any message in the kernel
log.

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
To: rtc-linux@googlegroups.com
Cc: david-b@pacbell.net
Cc: a.zummo@towertech.it
Cc: akpm@linux-foundation.org
Patchwork: http://patchwork.linux-mips.org/patch/1158/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/rtc/rtc-cmos.c