From: Ondrej Zary Date: Wed, 30 Nov 2011 04:11:44 +0000 (+1100) Subject: drivers/rtc/rtc-cmos.c: fix broken NVRAM bank 2 writing X-Git-Tag: next-20111130~3^2~72 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f030ef86316b560efa4e1d8f52e1edb67abb407d;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