From: Yauhen Kharuzhy Date: Tue, 10 Jan 2012 23:10:32 +0000 (-0800) Subject: drivers/rtc/rtc-mxc.c: fix setting time for MX1 SoC X-Git-Tag: v3.3-rc1~113^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7287be1d0ac8c82999b67c2a33517c6ec9cfdbe7;p=pandora-kernel.git drivers/rtc/rtc-mxc.c: fix setting time for MX1 SoC There is no way to track year in the i.MX1 RTC: Days Counter register is 9-bit wide only. Attempt to save date after 1970-01-01 plus 512 days causes endless loop in mxc_rtc_set_mmss(). Fix this by resetting year to 1970. [akpm@linux-foundation.org: use conventional comment layout] Signed-off-by: Yauhen Kharuzhy Cc: Daniel Mack Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed