patch-2.3.15 linux/arch/alpha/lib/io.c

Next file: linux/arch/i386/boot/bootsect.S
Previous file: linux/arch/alpha/kernel/semaphore.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.14/linux/arch/alpha/lib/io.c linux/arch/alpha/lib/io.c
@@ -90,7 +90,7 @@
 	__writeb(b, addr);
 }
 
-void ___raw_writeb(unsigned short b, unsigned long addr)
+void ___raw_writew(unsigned short b, unsigned long addr)
 {
 	__writew(b, addr);
 }
@@ -487,7 +487,7 @@
 	if (count >= 2 && (to & 1) == ((long)from & 1)) {
 		count -= 2;
 		do {
-			__raw_writeb(*(const u16 *)from, to);
+			__raw_writew(*(const u16 *)from, to);
 			count -= 2;
 			to += 2;
 			from += 2;
@@ -518,7 +518,7 @@
 
 	/* Handle any initial odd halfword */
 	if (count >= 2 && (to & 2)) {
-		__raw_writeb(c, to);
+		__raw_writew(c, to);
 		to += 2;
 		count -= 2;
 	}
@@ -551,7 +551,7 @@
 
 	/* The tail is half-word aligned if we have count >= 2 */
 	if (count >= 2) {
-		__raw_writeb(c, to);
+		__raw_writew(c, to);
 		to += 2;
 		count -= 2;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)