diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 15:36:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-22 01:43:57 -0400 |
commit | 1964e0dedf98e2fdf3bfd3ac8cf02d9e9aa803fb (patch) | |
tree | a254048f760920f1588d7dd43e80978e6a0037c0 /drivers/net/wireless/netwave_cs.c | |
parent | f56ef16eb0c30bf76acf7c2ac9ee68781a7aef6a (diff) |
netwave: convert to net_device_ops
Also get rid of unneeded cast
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/netwave_cs.c')
-rw-r--r-- | drivers/net/wireless/netwave_cs.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/net/wireless/netwave_cs.c b/drivers/net/wireless/netwave_cs.c index 9e7e37f5cdcb..d63c8992f229 100644 --- a/drivers/net/wireless/netwave_cs.c +++ b/drivers/net/wireless/netwave_cs.c | |||
@@ -355,6 +355,17 @@ static struct iw_statistics *netwave_get_wireless_stats(struct net_device *dev) | |||
355 | return &priv->iw_stats; | 355 | return &priv->iw_stats; |
356 | } | 356 | } |
357 | 357 | ||
358 | static const struct net_device_ops netwave_netdev_ops = { | ||
359 | .ndo_open = netwave_open, | ||
360 | .ndo_stop = netwave_close, | ||
361 | .ndo_start_xmit = netwave_start_xmit, | ||
362 | .ndo_set_multicast_list = set_multicast_list, | ||
363 | .ndo_tx_timeout = netwave_watchdog, | ||
364 | .ndo_change_mtu = eth_change_mtu, | ||
365 | .ndo_set_mac_address = eth_mac_addr, | ||
366 | .ndo_validate_addr = eth_validate_addr, | ||
367 | }; | ||
368 | |||
358 | /* | 369 | /* |
359 | * Function netwave_attach (void) | 370 | * Function netwave_attach (void) |
360 | * | 371 | * |
@@ -403,16 +414,12 @@ static int netwave_probe(struct pcmcia_device *link) | |||
403 | spin_lock_init(&priv->spinlock); | 414 | spin_lock_init(&priv->spinlock); |
404 | 415 | ||
405 | /* Netwave specific entries in the device structure */ | 416 | /* Netwave specific entries in the device structure */ |
406 | dev->hard_start_xmit = &netwave_start_xmit; | 417 | dev->netdev_ops = &netwave_netdev_ops; |
407 | dev->set_multicast_list = &set_multicast_list; | ||
408 | /* wireless extensions */ | 418 | /* wireless extensions */ |
409 | dev->wireless_handlers = (struct iw_handler_def *)&netwave_handler_def; | 419 | dev->wireless_handlers = &netwave_handler_def; |
410 | 420 | ||
411 | dev->tx_timeout = &netwave_watchdog; | ||
412 | dev->watchdog_timeo = TX_TIMEOUT; | 421 | dev->watchdog_timeo = TX_TIMEOUT; |
413 | 422 | ||
414 | dev->open = &netwave_open; | ||
415 | dev->stop = &netwave_close; | ||
416 | link->irq.Instance = dev; | 423 | link->irq.Instance = dev; |
417 | 424 | ||
418 | return netwave_pcmcia_config( link); | 425 | return netwave_pcmcia_config( link); |