patch-2.4.0-test2 linux/drivers/net/cs89x0.c
Next file: linux/drivers/net/daynaport.c
Previous file: linux/drivers/net/bonding.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Mon Jun 19 13:30:57 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/cs89x0.c
- Orig date:
Thu May 11 15:30:07 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/cs89x0.c linux/drivers/net/cs89x0.c
@@ -238,7 +238,7 @@
if (base_addr > 0x1ff) /* Check a single specified location. */
return cs89x0_probe1(dev, base_addr);
else if (base_addr != 0) /* Don't probe at all. */
- return ENXIO;
+ return -ENXIO;
for (i = 0; netcard_portlist[i]; i++) {
int ioaddr = netcard_portlist[i];
@@ -248,7 +248,7 @@
return 0;
}
printk(KERN_WARNING "cs89x0: no cs8900 or cs8920 detected. Be sure to disable PnP with SETUP\n");
- return ENODEV;
+ return -ENODEV;
}
extern int inline
@@ -366,7 +366,7 @@
if (ioaddr & 1) {
ioaddr &= ~1;
if ((inw(ioaddr + ADD_PORT) & ADD_MASK) != ADD_SIG)
- return ENODEV;
+ return -ENODEV;
outw(PP_ChipID, ioaddr + ADD_PORT);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)