From: Oliver Hartkopp Date: Tue, 16 Dec 2008 09:42:50 +0000 (-0800) Subject: vcan: convert to net_device_ops X-Git-Tag: v2.6.29-rc1~581^2~169 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d;p=platform%2Fkernel%2Flinux-3.10.git vcan: convert to net_device_ops Signed-off-by: Oliver Hartkopp Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/vcan.c b/drivers/net/can/vcan.c index 103f0f1..f127ec9 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; }