diff options
Diffstat (limited to 'drivers/net/hamradio/6pack.c')
-rw-r--r-- | drivers/net/hamradio/6pack.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/net/hamradio/6pack.c b/drivers/net/hamradio/6pack.c index 2d4089894ec7..3da9f394b4c6 100644 --- a/drivers/net/hamradio/6pack.c +++ b/drivers/net/hamradio/6pack.c | |||
@@ -322,23 +322,25 @@ static const struct header_ops sp_header_ops = { | |||
322 | .rebuild = sp_rebuild_header, | 322 | .rebuild = sp_rebuild_header, |
323 | }; | 323 | }; |
324 | 324 | ||
325 | static const struct net_device_ops sp_netdev_ops = { | ||
326 | .ndo_open = sp_open_dev, | ||
327 | .ndo_stop = sp_close, | ||
328 | .ndo_start_xmit = sp_xmit, | ||
329 | .ndo_set_mac_address = sp_set_mac_address, | ||
330 | }; | ||
331 | |||
325 | static void sp_setup(struct net_device *dev) | 332 | static void sp_setup(struct net_device *dev) |
326 | { | 333 | { |
327 | /* Finish setting up the DEVICE info. */ | 334 | /* Finish setting up the DEVICE info. */ |
328 | dev->mtu = SIXP_MTU; | 335 | dev->netdev_ops = &sp_netdev_ops; |
329 | dev->hard_start_xmit = sp_xmit; | ||
330 | dev->open = sp_open_dev; | ||
331 | dev->destructor = free_netdev; | 336 | dev->destructor = free_netdev; |
332 | dev->stop = sp_close; | 337 | dev->mtu = SIXP_MTU; |
333 | |||
334 | dev->set_mac_address = sp_set_mac_address; | ||
335 | dev->hard_header_len = AX25_MAX_HEADER_LEN; | 338 | dev->hard_header_len = AX25_MAX_HEADER_LEN; |
336 | dev->header_ops = &sp_header_ops; | 339 | dev->header_ops = &sp_header_ops; |
337 | 340 | ||
338 | dev->addr_len = AX25_ADDR_LEN; | 341 | dev->addr_len = AX25_ADDR_LEN; |
339 | dev->type = ARPHRD_AX25; | 342 | dev->type = ARPHRD_AX25; |
340 | dev->tx_queue_len = 10; | 343 | dev->tx_queue_len = 10; |
341 | dev->tx_timeout = NULL; | ||
342 | 344 | ||
343 | /* Only activated in AX.25 mode */ | 345 | /* Only activated in AX.25 mode */ |
344 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); | 346 | memcpy(dev->broadcast, &ax25_bcast, AX25_ADDR_LEN); |