diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-01-08 02:57:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-08 02:57:47 +0100 |
commit | e287157f15f3ab9cda4cfe334fee41c7b758966f (patch) | |
tree | 69d036e8311a0605ce3c70044c7aeceb66a61ebc /drivers/net/fealnx.c | |
parent | natsemi: update to net_device_ops (diff) | |
download | linux-e287157f15f3ab9cda4cfe334fee41c7b758966f.tar.xz linux-e287157f15f3ab9cda4cfe334fee41c7b758966f.zip |
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/fealnx.c')
-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) } } +static const struct net_device_ops netdev_ops = { + .ndo_open = netdev_open, + .ndo_stop = netdev_close, + .ndo_start_xmit = start_tx, + .ndo_get_stats = get_stats, + .ndo_set_multicast_list = set_rx_mode, + .ndo_do_ioctl = mii_ioctl, + .ndo_tx_timeout = fealnx_tx_timeout, + .ndo_change_mtu = eth_change_mtu, + .ndo_set_mac_address = eth_mac_addr, + .ndo_validate_addr = eth_validate_addr, +}; static int __devinit fealnx_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) @@ -649,15 +661,8 @@ static int __devinit fealnx_init_one(struct pci_dev *pdev, np->mii.force_media = 1; } - /* The chip-specific entries in the device structure. */ - dev->open = &netdev_open; - dev->hard_start_xmit = &start_tx; - dev->stop = &netdev_close; - dev->get_stats = &get_stats; - dev->set_multicast_list = &set_rx_mode; - dev->do_ioctl = &mii_ioctl; + dev->netdev_ops = &netdev_ops; dev->ethtool_ops = &netdev_ethtool_ops; - dev->tx_timeout = &fealnx_tx_timeout; dev->watchdog_timeo = TX_TIMEOUT; err = register_netdev(dev); |