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

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

diff -u --recursive --new-file v2.2.0-pre5/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 = (char *)0xf0000; p < (char *)0x100000; p++)
+	for(p = phys_to_virt(0xf0000); p < phys_to_virt(0x100000); p++)
 		if (*p == 'N'  &&  strncmp(p, "NETIDBLK", 8) == 0)
 			break;
 
-	if (p >= (char *)0x100000) {
+	if (p >= pyhs_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