patch-2.3.19 linux/drivers/net/tlan.c
Next file: linux/drivers/net/via-rhine.c
Previous file: linux/drivers/net/smc-mca.h
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Wed Sep 29 15:32:15 1999
- Orig file:
v2.3.18/linux/drivers/net/tlan.c
- Orig date:
Wed Aug 18 11:36:43 1999
diff -u --recursive --new-file v2.3.18/linux/drivers/net/tlan.c linux/drivers/net/tlan.c
@@ -59,6 +59,13 @@
static int duplex = 0;
static int speed = 0;
+MODULE_PARM(aui, "i");
+MODULE_PARM(sa_int, "i");
+MODULE_PARM(duplex, "i");
+MODULE_PARM(speed, "i");
+MODULE_PARM(debug, "i");
+EXPORT_NO_SYMBOLS;
+
#endif
@@ -352,7 +359,7 @@
/* printk( "TLAN: Found %d device(s).\n", TLanDevicesInstalled ); */
- return ( ( TLanDevicesInstalled >= 0 ) ? 0 : -ENODEV );
+ return ( ( TLanDevicesInstalled > 0 ) ? 0 : -ENODEV );
} /* init_module */
@@ -2528,13 +2535,13 @@
for ( i = ( 0x1 << ( num_bits - 1 ) ); i; i >>= 1 ) {
TLan_ClearBit( TLAN_NET_SIO_MCLK, sio );
- TLan_GetBit( TLAN_NET_SIO_MCLK, sio );
+ (void) TLan_GetBit( TLAN_NET_SIO_MCLK, sio );
if ( data & i )
TLan_SetBit( TLAN_NET_SIO_MDATA, sio );
else
TLan_ClearBit( TLAN_NET_SIO_MDATA, sio );
TLan_SetBit( TLAN_NET_SIO_MCLK, sio );
- TLan_GetBit( TLAN_NET_SIO_MCLK, sio );
+ (void) TLan_GetBit( TLAN_NET_SIO_MCLK, sio );
}
} /* TLan_MiiSendData */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)