diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-07 20:57:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-07 20:57:47 -0500 |
commit | e287157f15f3ab9cda4cfe334fee41c7b758966f (patch) | |
tree | 69d036e8311a0605ce3c70044c7aeceb66a61ebc /drivers/net | |
parent | 2b7d0c7039e9fd1bd64ba3ef2676f06b068eba34 (diff) |
fealnx: update to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fealnx.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/drivers/net/fealnx.c b/drivers/net/fealnx.c index 31ab1ff623fc..daf7272c3352 100644 --- a/drivers/net/fealnx.c +++ b/drivers/net/fealnx.c | |||
@@ -467,6 +467,18 @@ static void stop_nic_rxtx(void __iomem *ioaddr, long crvalue) | |||
467 | } | 467 | } |
468 | } | 468 | } |
469 | 469 | ||
470 | static const struct net_device_ops netdev_ops = { | ||
471 | .ndo_open = netdev_open, | ||
472 | .ndo_stop = netdev_close, | ||
473 | .ndo_start_xmit = start_tx, | ||
474 | .ndo_get_stats = get_stats, | ||
475 | .ndo_set_multicast_list = set_rx_mode, | ||
476 | .ndo_do_ioctl = mii_ioctl, | ||
477 | .ndo_tx_timeout = fealnx_tx_timeout, | ||
478 | .ndo_change_mtu = eth_change_mtu, | ||
479 | .ndo_set_mac_address = eth_mac_addr, | ||
480 | .ndo_validate_addr = eth_validate_addr, | ||
481 | }; | ||
470 | 482 | ||
471 | static int __devinit fealnx_init_one(struct pci_dev *pdev, | 483 | static int __devinit fealnx_init_one(struct pci_dev *pdev, |
472 | const struct pci_device_id *ent) | 484 | const struct pci_device_id *ent) |
@@ -649,15 +661,8 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev, | |||
649 | np->mii.force_media = 1; | 661 | np->mii.force_media = 1; |
650 | } | 662 | } |
651 | 663 | ||
652 | /* The chip-specific entries in the device structure. */ | 664 | dev->netdev_ops = &netdev_ops; |
653 | dev->open = &netdev_open; | ||
654 | dev->hard_start_xmit = &start_tx; | ||
655 | dev->stop = &netdev_close; | ||
656 | dev->get_stats = &get_stats; | ||
657 | dev->set_multicast_list = &set_rx_mode; | ||
658 | dev->do_ioctl = &mii_ioctl; | ||
659 | dev->ethtool_ops = &netdev_ethtool_ops; | 665 | dev->ethtool_ops = &netdev_ethtool_ops; |
660 | dev->tx_timeout = &fealnx_tx_timeout; | ||
661 | dev->watchdog_timeo = TX_TIMEOUT; | 666 | dev->watchdog_timeo = TX_TIMEOUT; |
662 | 667 | ||
663 | err = register_netdev(dev); | 668 | err = register_netdev(dev); |