Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fealnx: update to net_device_ops

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Stephen Hemminger and committed by
David S. Miller
e287157f 2b7d0c70

+13 -8
+13 -8
drivers/net/fealnx.c
··· 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 483 static int __devinit fealnx_init_one(struct pci_dev *pdev, 472 484 const struct pci_device_id *ent) ··· 661 649 np->mii.force_media = 1; 662 650 } 663 651 664 - /* The chip-specific entries in the device structure. */ 665 - dev->open = &netdev_open; 666 - dev->hard_start_xmit = &start_tx; 667 - dev->stop = &netdev_close; 668 - dev->get_stats = &get_stats; 669 - dev->set_multicast_list = &set_rx_mode; 670 - dev->do_ioctl = &mii_ioctl; 652 + dev->netdev_ops = &netdev_ops; 671 653 dev->ethtool_ops = &netdev_ethtool_ops; 672 - dev->tx_timeout = &fealnx_tx_timeout; 673 654 dev->watchdog_timeo = TX_TIMEOUT; 674 655 675 656 err = register_netdev(dev);