Skip to contentSkip to conversation

rtc-cmos: fix broken NVRAM bank 2 writing

PATCH RESEND New Ondrej Zary 1 participant 1 message Nov 16, 2011 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 rtc-cmos: 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.

drivers/rtc/rtc-cmos.c +1 -1
@@ -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
Signature · 1 line
Ondrej Zary