Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122726
b: refs/heads/master
c: 5ad258c
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Hartkopp authored and David S. Miller committed Dec 16, 2008
1 parent 91dda5c commit 5a0adb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffcebb163c6ddba11abd2e8aabc7a8a88982e4f4
refs/heads/master: 5ad258c0a85a7cc03c46874e8a26c7e9b4dfb90d
6 changes: 5 additions & 1 deletion trunk/drivers/net/can/vcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 5a0adb1

Please sign in to comment.