patch-2.3.14 linux/drivers/net/loopback.c

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

diff -u --recursive --new-file v2.3.13/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -58,7 +58,7 @@
  * The higher levels take care of making this non-reentrant (it's
  * called with bh's disabled).
  */
-static int loopback_xmit(struct sk_buff *skb, struct device *dev)
+static int loopback_xmit(struct sk_buff *skb, struct net_device *dev)
 {
 	struct net_device_stats *stats = (struct net_device_stats *)dev->priv;
 
@@ -102,19 +102,19 @@
 	return(0);
 }
 
-static struct net_device_stats *get_stats(struct device *dev)
+static struct net_device_stats *get_stats(struct net_device *dev)
 {
 	return (struct net_device_stats *)dev->priv;
 }
 
-static int loopback_open(struct device *dev)
+static int loopback_open(struct net_device *dev)
 {
 	dev->flags|=IFF_LOOPBACK;
 	return 0;
 }
 
 /* Initialize the rest of the LOOPBACK device. */
-int __init loopback_init(struct device *dev)
+int __init loopback_init(struct net_device *dev)
 {
 	dev->mtu		= LOOPBACK_MTU;
 	dev->tbusy		= 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)