patch-2.4.0-test2 linux/drivers/net/znet.c

Next file: linux/drivers/parport/BUGS-parport
Previous file: linux/drivers/net/wd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/znet.c linux/drivers/net/znet.c
@@ -218,7 +218,7 @@
 	if (p >= (char *)phys_to_virt(0x100000)) {
 		if (znet_debug > 1)
 			printk(KERN_INFO "No Z-Note ethernet adaptor found.\n");
-		return ENODEV;
+		return -ENODEV;
 	}
 	netinfo = (struct netidblk *)p;
 	dev->base_addr = netinfo->iobase1;
@@ -256,7 +256,7 @@
 		|| request_dma(zn.rx_dma,"ZNet rx")
 		|| request_dma(zn.tx_dma,"ZNet tx")) {
 		printk(KERN_WARNING "%s: Not opened -- resource busy?!?\n", dev->name);
-		return EBUSY;
+		return -EBUSY;
 	}
 
 	/* Allocate buffer memory.	We can cross a 128K boundary, so we

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