From: Rudolf Marek Date: Tue, 27 Jul 2010 20:18:02 +0000 (-0700) Subject: drivers/rtc/rtc-rx8581.c: fix setdatetime X-Git-Tag: v2.6.35~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2884fce165047db7df422e52a672970fa09c87b5;p=pandora-kernel.git drivers/rtc/rtc-rx8581.c: fix setdatetime Fix the logic while writing new date/time to the chip. The driver incorrectly wrote back register values to different registers and even with wrong mask. The patch adds clearing of the VLF register, which should be cleared if all date/time values are set. Signed-off-by: Rudolf Marek Acked-by: Wan ZongShun Cc: Martyn Welch Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed