patch-2.4.0-test2 linux/drivers/net/sunlance.c
Next file: linux/drivers/net/sunqe.c
Previous file: linux/drivers/net/sunhme.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Mon Jun 19 13:42:39 2000
- Orig file:
v2.4.0-test1/linux/drivers/net/sunlance.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.4.0-test1/linux/drivers/net/sunlance.c linux/drivers/net/sunlance.c
@@ -1,4 +1,4 @@
-/* $Id: sunlance.c,v 1.100 2000/02/27 09:38:12 anton Exp $
+/* $Id: sunlance.c,v 1.101 2000/06/19 06:24:46 davem Exp $
* lance.c: Linux/Sparc/Lance driver
*
* Written 1995, 1996 by Miguel de Icaza
@@ -1502,7 +1502,7 @@
fail:
if (lp != NULL)
lance_free_hwresources(lp);
- return ENODEV;
+ return -ENODEV;
}
/* On 4m, find the associated dma for the lance chip */
@@ -1532,7 +1532,7 @@
#endif
if (called)
- return ENODEV;
+ return -ENODEV;
called++;
if ((idprom->id_machtype == (SM_SUN4|SM_4_330)) ||
@@ -1542,7 +1542,7 @@
sdev.irqs[0] = 6;
return sparc_lance_init(NULL, &sdev, 0, 0);
}
- return ENODEV;
+ return -ENODEV;
}
#else /* !CONFIG_SUN4 */
@@ -1562,7 +1562,7 @@
#endif
if (called)
- return ENODEV;
+ return -ENODEV;
called++;
for_each_sbus (bus) {
@@ -1593,7 +1593,7 @@
} /* for each sbusdev */
} /* for each sbus */
if (!cards)
- return ENODEV;
+ return -ENODEV;
return 0;
}
#endif /* !CONFIG_SUN4 */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)