]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: fix the error in the function of cmos_set_alarm
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 15 Apr 2008 21:34:29 +0000 (14:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Apr 2008 02:35:40 +0000 (19:35 -0700)
commitd690c1706657d286aa3a5a1f11389da33af34ee0
tree4d0550c89b8a7ca419eedac240a21a3455abad79
parent501720cb13bca6e412bc480c3518284e010283e6
rtc: fix the error in the function of cmos_set_alarm

There is a bug in the function of cmos_set_alarm.  RTC alarm time for October
can't be set correctly.

For October: 0x0A will be written into the RTC region (MONTH_ALARM) in current
kernel.  But in fact 0x10 should be written.  Wildcards are also not handled
correctly.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
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-cmos.c