From patchwork Wed Nov 16 22:27:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [resend] rtc-cmos: fix broken NVRAM bank 2 writing Date: Wed, 16 Nov 2011 12:27:45 -0000 From: Ondrej Zary X-Patchwork-Id: 126056 Message-Id: <201111162327.49465.linux@rainbow-software.org> To: Alessandro Zummo Cc: rtc-linux@googlegroups.com, Kernel development list 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-3.1-orig/drivers/rtc/rtc-cmos.c 2011-10-24 09:10:05.000000000 +0200 +++ linux-3.1/drivers/rtc/rtc-cmos.c 2011-11-08 17:43:29.000000000 +0100 @@ -164,7 +164,7 @@ static inline unsigned char cmos_read_ba 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