summaryrefslogtreecommitdiffstats
path: root/drivers/net/can/vcan.c
diff options
context:
space:
mode:
authorOliver Hartkopp <oliver@hartkopp.net>2008-12-16 10:42:50 +0100
committerDavid S. Miller <davem@davemloft.net>2008-12-16 10:42:50 +0100
commit5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d (patch)
tree568e0fd08df0ebc359e99c7a380c738ae0a5779e /drivers/net/can/vcan.c
parentl2tp: fix UDP checksum support (diff)
downloadlinux-5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d.tar.xz
linux-5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d.zip
vcan: convert to net_device_ops
Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/vcan.c')
-rw-r--r--drivers/net/can/vcan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/can/vcan.c b/drivers/net/can/vcan.c
index 103f0f1df280..f127ec983d03 100644
--- a/drivers/net/can/vcan.c
+++ b/drivers/net/can/vcan.c
@@ -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;
}