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

Next file: linux/drivers/net/ne2k-pci.c
Previous file: linux/drivers/net/ne.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/ne2.c linux/drivers/net/ne2.c
@@ -171,7 +171,7 @@
 			return ne2_probe1(dev, current_mca_slot);
 		}
 	}
-	return ENODEV;
+	return -ENODEV;
 }
 
 
@@ -222,7 +222,7 @@
 	POS = mca_read_stored_pos(slot, 2);
 	if(!(POS % 2)) {
 		printk(" disabled.\n");
-		return ENODEV;
+		return -ENODEV;
 	}
 
 	i = (POS & 0xE)>>1;
@@ -245,7 +245,7 @@
 	outb(0x21, base_addr + NE_CMD);
 	if (inb(base_addr + NE_CMD) != 0x21) {
 		printk("NE/2 adapter not responding\n");
-		return ENODEV;
+		return -ENODEV;
 	}
 
 	/* In the crynwr sources they do a RAM-test here. I skip it. I suppose
@@ -266,7 +266,7 @@
 		while ((inb_p(base_addr + EN0_ISR) & ENISR_RESET) == 0)
 			if (jiffies - reset_start_time > 2*HZ/100) {
 				printk(" not found (no reset ack).\n");
-				return ENODEV;
+				return -ENODEV;
 			}
 
 		outb_p(0xff, base_addr + EN0_ISR);         /* Ack all intr. */
@@ -321,7 +321,7 @@
 		if (irqval) {
 			printk (" unable to get IRQ %d (irqval=%d).\n", 
 					dev->irq, +irqval);
-			return EAGAIN;
+			return -EAGAIN;
 		}
 	}
 

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