From: Ondrej Zary Date: Fri, 16 Dec 2011 04:50:23 +0000 (+1100) Subject: drivers/rtc/rtc-cmos.c: fix broken NVRAM bank 2 writing X-Git-Tag: next-20111221~2^2~85 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=74bef7d60e26441aa8f2f4062110d64b4cc7e67f;p=karo-tx-linux.git 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 Cc: Alessandro Zummo Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index 05beb6c1ca79..d7782aa09943 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -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