aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorYauhen Kharuzhy <[email protected]>2012-01-10 15:10:32 -0800
committerLinus Torvalds <[email protected]>2012-01-10 16:30:52 -0800
commit7287be1d0ac8c82999b67c2a33517c6ec9cfdbe7 (patch)
tree7ed79d428bec700c2288c83cf3d685f87aa7019a /lib/memory-notifier-error-inject.c
parentb43c1ea4d622b6951377de92edfb219d893e23ef (diff)
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. [[email protected]: use conventional comment layout] Signed-off-by: Yauhen Kharuzhy <[email protected]> Cc: Daniel Mack <[email protected]> Cc: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions