aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/lapbether.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c
index d0b8d0299de4..2dd78d20eb05 100644
--- a/drivers/net/wan/lapbether.c
+++ b/drivers/net/wan/lapbether.c
@@ -303,13 +303,17 @@ static int lapbeth_close(struct net_device *dev)
303 303
304/* ------------------------------------------------------------------------ */ 304/* ------------------------------------------------------------------------ */
305 305
306static const struct net_device_ops lapbeth_netdev_ops = {
307 .ndo_open = lapbeth_open,
308 .ndo_stop = lapbeth_close,
309 .ndo_start_xmit = lapbeth_xmit,
310 .ndo_set_mac_address = lapbeth_set_mac_address,
311};
312
306static void lapbeth_setup(struct net_device *dev) 313static void lapbeth_setup(struct net_device *dev)
307{ 314{
308 dev->hard_start_xmit = lapbeth_xmit; 315 dev->netdev_ops = &lapbeth_netdev_ops;
309 dev->open = lapbeth_open;
310 dev->stop = lapbeth_close;
311 dev->destructor = free_netdev; 316 dev->destructor = free_netdev;
312 dev->set_mac_address = lapbeth_set_mac_address;
313 dev->type = ARPHRD_X25; 317 dev->type = ARPHRD_X25;
314 dev->hard_header_len = 3; 318 dev->hard_header_len = 3;
315 dev->mtu = 1000; 319 dev->mtu = 1000;