patch-2.4.0-test2 linux/drivers/net/3c507.c
Next file: linux/drivers/net/3c515.c
Previous file: linux/drivers/net/3c503.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Mon Jun 19 13:30:56 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/3c507.c
- Orig date:
Thu May 11 15:30:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/3c507.c linux/drivers/net/3c507.c
@@ -315,7 +315,7 @@
if (base_addr > 0x1ff) /* Check a single specified location. */
return el16_probe1(dev, base_addr);
else if (base_addr != 0)
- return ENXIO; /* Don't probe at all. */
+ return -ENXIO; /* Don't probe at all. */
for (i = 0; netcard_portlist[i]; i++) {
int ioaddr = netcard_portlist[i];
@@ -325,7 +325,7 @@
return 0;
}
- return ENODEV;
+ return -ENODEV;
}
static int __init el16_probe1(struct net_device *dev, int ioaddr)
@@ -351,7 +351,7 @@
&& inb(ioaddr+2) == 'C' && inb(ioaddr+3) == 'O')
;
else
- return ENODEV;
+ return -ENODEV;
/* Allocate a new 'dev' if needed. */
if (dev == NULL)
@@ -370,7 +370,7 @@
irqval = request_irq(irq, &el16_interrupt, 0, "3c507", dev);
if (irqval) {
printk ("unable to get IRQ %d (irqval=%d).\n", irq, irqval);
- return EAGAIN;
+ return -EAGAIN;
}
/* We've committed to using the board, and can start filling in *dev. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)