summaryrefslogtreecommitdiffstats
path: root/drivers/net/znet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/znet.c')
-rw-r--r--drivers/net/znet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/znet.c b/drivers/net/znet.c
index 2dff6d16b..0884cb0d8 100644
--- a/drivers/net/znet.c
+++ b/drivers/net/znet.c
@@ -207,11 +207,11 @@ __initfunc(int znet_probe(struct device *dev))
char *p;
/* This code scans the region 0xf0000 to 0xfffff for a "NETIDBLK". */
- for(p = (char *)0xf0000; p < (char *)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 >= (char *)0x100000) {
+ if (p >= (char *)phys_to_virt(0x100000)) {
if (znet_debug > 1)
printk(KERN_INFO "No Z-Note ethernet adaptor found.\n");
return ENODEV;