Update of /cvsroot/linux-mips/linux/drivers/net
In directory usw-pr-cvs1:/tmp/cvs-serv28983
Modified Files:
gt96100eth.c
Log Message:
Small error in last commit.
Index: gt96100eth.c
===================================================================
RCS file: /cvsroot/linux-mips/linux/drivers/net/gt96100eth.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gt96100eth.c 2001/11/11 00:24:38 1.5
+++ gt96100eth.c 2001/11/19 23:25:08 1.6
@@ -700,7 +700,7 @@
*/
int gt96100_init_module(void)
{
- int i;
+ int i, retval;
#ifndef CONFIG_MIPS_GT96100ETH
return -ENODEV;
@@ -709,9 +709,12 @@
for (i=NUM_INTERFACES-1; i>0; i--) {
int base_addr = gt96100_iflist[i].port;
- gt96100_probe1(base_addr, gt96100_iflist[i].irq, i);
+ if ((retval = gt96100_probe1(base_addr,
+ gt96100_iflist[i].irq, i)))
+ break;
}
- return -ENODEV;
+
+ return retval;
}
|