Commit 39549b1e authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

labether: convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea2ebaf8
...@@ -303,13 +303,17 @@ static int lapbeth_close(struct net_device *dev) ...@@ -303,13 +303,17 @@ static int lapbeth_close(struct net_device *dev)
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
static const struct net_device_ops lapbeth_netdev_ops = {
.ndo_open = lapbeth_open,
.ndo_stop = lapbeth_close,
.ndo_start_xmit = lapbeth_xmit,
.ndo_set_mac_address = lapbeth_set_mac_address,
};
static void lapbeth_setup(struct net_device *dev) static void lapbeth_setup(struct net_device *dev)
{ {
dev->hard_start_xmit = lapbeth_xmit; dev->netdev_ops = &lapbeth_netdev_ops;
dev->open = lapbeth_open;
dev->stop = lapbeth_close;
dev->destructor = free_netdev; dev->destructor = free_netdev;
dev->set_mac_address = lapbeth_set_mac_address;
dev->type = ARPHRD_X25; dev->type = ARPHRD_X25;
dev->hard_header_len = 3; dev->hard_header_len = 3;
dev->mtu = 1000; dev->mtu = 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment