aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2013-01-04 15:35:48 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-11 09:03:49 -0800
commita2e111385dba40ec7bf70ad944e1139387281078 (patch)
tree3311cb96fb229611adf984371dbbc3beec0cd6d7 /mm
parentafc0e69cd367175e058c3bcbe5cb624aad4df3e5 (diff)
downloadkernel_samsung_smdk4412-a2e111385dba40ec7bf70ad944e1139387281078.tar.gz
kernel_samsung_smdk4412-a2e111385dba40ec7bf70ad944e1139387281078.tar.bz2
kernel_samsung_smdk4412-a2e111385dba40ec7bf70ad944e1139387281078.zip
drivers/rtc/rtc-vt8500.c: fix handling of data passed in struct rtc_time
commit 2f90b68309683f2c5765a1b04ca23d71e51f1494 upstream. tm_mon is 0..11, whereas vt8500 expects 1..12 for the month field, causing invalid date errors for January, and causing the day field to roll over incorrectly. The century flag is only handled in vt8500_rtc_read_time, but not set in vt8500_rtc_set_time. This patch corrects the behaviour of the century flag. Signed-off-by: Edgar Toernig <froese@gmx.de> Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions