mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
drivers/rtc/rtc-cmos.c: fix broken NVRAM bank 2 writing
Fix writing to NVRAM bank 2 in rtc-cmos driver. It never worked since its introduction in 2.6.28 because of a typo. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> 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>
This commit is contained in:
parent
e26d196cc8
commit
b43c1ea4d6
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static inline unsigned char cmos_read_bank2(unsigned char addr)
|
|||
static inline void cmos_write_bank2(unsigned char val, unsigned char addr)
|
||||
{
|
||||
outb(addr, RTC_PORT(2));
|
||||
outb(val, RTC_PORT(2));
|
||||
outb(val, RTC_PORT(3));
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue