patch-2.1.128 linux/drivers/net/ariadne2.c

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

diff -u --recursive --new-file v2.1.127/linux/drivers/net/ariadne2.c linux/drivers/net/ariadne2.c
@@ -97,7 +97,7 @@
 	    return 0;
 	}
     }
-    return ENODEV;
+    return -ENODEV;
 }
 
 __initfunc(static int ariadne2_init(struct device *dev, unsigned int key,
@@ -131,7 +131,7 @@
 	while ((readb(ioaddr + NE_EN0_ISR) & ENISR_RESET) == 0)
 	    if (jiffies - reset_start_time > 2*HZ/100) {
 		printk(" not found (no reset ack).\n");
-		return ENODEV;
+		return -ENODEV;
 	    }
 
 	writeb(0xff, ioaddr + NE_EN0_ISR);		/* Ack all intr. */

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