Commit b43c1ea4 authored by Ondrej Zary's avatar Ondrej Zary Committed by Linus Torvalds

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: default avatarOndrej Zary <linux@rainbow-software.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e26d196c
...@@ -164,7 +164,7 @@ static inline unsigned char cmos_read_bank2(unsigned char addr) ...@@ -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) static inline void cmos_write_bank2(unsigned char val, unsigned char addr)
{ {
outb(addr, RTC_PORT(2)); outb(addr, RTC_PORT(2));
outb(val, RTC_PORT(2)); outb(val, RTC_PORT(3));
} }
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment