patch-2.2.0-pre8 linux/drivers/net/znet.c

Next file: linux/drivers/pci/oldproc.c
Previous file: linux/drivers/net/rcpci45.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre7/linux/drivers/net/znet.c linux/drivers/net/znet.c
@@ -207,11 +207,11 @@
 	char *p;
 
 	/* This code scans the region 0xf0000 to 0xfffff for a "NETIDBLK". */
-	for(p = phys_to_virt(0xf0000); p < phys_to_virt(0x100000); p++)
+	for(p = (char *)phys_to_virt(0xf0000); p < (char *)phys_to_virt(0x100000); p++)
 		if (*p == 'N'  &&  strncmp(p, "NETIDBLK", 8) == 0)
 			break;
 
-	if (p >= pyhs_to_virt(0x100000)) {
+	if (p >= (char *)phys_to_virt(0x100000)) {
 		if (znet_debug > 1)
 			printk(KERN_INFO "No Z-Note ethernet adaptor found.\n");
 		return ENODEV;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov