drivers/rtc/rtc-pl031.c: configure correct wday for 2000-01-01
authorRajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Fri, 18 May 2012 00:03:24 +0000 (17:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 18 May 2012 01:00:51 +0000 (18:00 -0700)
commitc0a5f4a05af588a0f9951f8d24e2564b09501918
treef96b6f0e201978ad9d2cb03a59a83940304fbe3b
parent1be5f0b7575e090fd100a98b303860879b5800de
drivers/rtc/rtc-pl031.c: configure correct wday for 2000-01-01

The reset date of the ST Micro version of PL031 is 2000-01-01.  The
correct weekday for 2000-01-01 is saturday, but pl031 is initialized to
sunday.  This may lead to alarm malfunction, so configure the correct
wday if RTC_DR indicates reset.

Signed-off-by: Rajkumar Kasirajan <rajkumar.kasirajan@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Mattias Wallin <mattias.wallin@stericsson.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pl031.c