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

Next file: linux/drivers/net/bonding.c
Previous file: linux/drivers/net/atari_pamsnet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/atp.c linux/drivers/net/atp.c
@@ -162,7 +162,7 @@
 	if (base_addr > 0x1ff)		/* Check a single specified location. */
 		return atp_probe1(dev, base_addr);
 	else if (base_addr == 1)	/* Don't probe at all. */
-		return ENXIO;
+		return -ENXIO;
 
 	for (port = ports; *port; port++) {
 		int ioaddr = *port;
@@ -173,7 +173,7 @@
 			return 0;
 	}
 
-	return ENODEV;
+	return -ENODEV;
 }
 
 static int __init atp_probe1(struct net_device *dev, short ioaddr)

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