patch-2.1.25 linux/drivers/net/ibmtr.c

Next file: linux/drivers/net/lance.c
Previous file: linux/drivers/net/hydra.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.24/linux/drivers/net/ibmtr.c linux/drivers/net/ibmtr.c
@@ -174,7 +174,7 @@
 static int	tok_open(struct device *dev);
 static int	tok_close(struct device *dev);
 static int	tok_send_packet(struct sk_buff *skb, struct device *dev);
-static struct enet_statistics * tok_get_stats(struct device *dev);
+static struct net_device_stats * tok_get_stats(struct device *dev);
 void		tr_readlog(struct device *dev);
 
 /* FIXME: Should use init_timer and friends not assume the structure
@@ -1561,11 +1561,11 @@
    this device -- the tr.... structure is an ethnet look-alike
    so at least for this iteration may suffice.   */
 
-static struct enet_statistics * tok_get_stats(struct device *dev) {
+static struct net_device_stats * tok_get_stats(struct device *dev) {
 
 	struct tok_info *toki;
 	toki=(struct tok_info *) dev->priv;
-	return (struct enet_statistics *) &toki->tr_stats;
+	return (struct net_device_stats *) &toki->tr_stats;
 }
 
 #ifdef MODULE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov