patch-2.2.13 linux/drivers/net/tlan.c
Next file: linux/drivers/net/via-rhine.c
Previous file: linux/drivers/net/syncppp.c
Back to the patch index
Back to the overall index
- Lines: 39
- Date:
Tue Oct 19 17:14:01 1999
- Orig file:
v2.2.12/linux/drivers/net/tlan.c
- Orig date:
Mon Apr 12 16:18:33 1999
diff -u --recursive --new-file v2.2.12/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)