vcan: convert to net_device_ops
authorOliver Hartkopp <oliver@hartkopp.net>
Tue, 16 Dec 2008 09:42:50 +0000 (01:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Dec 2008 09:42:50 +0000 (01:42 -0800)
Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/vcan.c

index 103f0f1df28065e9b30fab934f1f43184f654293..f127ec983d03265843bb0ebdfa64609472b52e85 100644 (file)
@@ -128,6 +128,10 @@ static int vcan_tx(struct sk_buff *skb, struct net_device *dev)
        return NETDEV_TX_OK;
 }
 
+static const struct net_device_ops vcan_netdev_ops = {
+       .ndo_start_xmit = vcan_tx,
+};
+
 static void vcan_setup(struct net_device *dev)
 {
        dev->type              = ARPHRD_CAN;
@@ -141,7 +145,7 @@ static void vcan_setup(struct net_device *dev)
        if (echo)
                dev->flags |= IFF_ECHO;
 
-       dev->hard_start_xmit   = vcan_tx;
+       dev->netdev_ops        = &vcan_netdev_ops;
        dev->destructor        = free_netdev;
 }