aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fealnx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/fealnx.c')
-rw-r--r--drivers/net/fealnx.c21
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
470static 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
471static int __devinit fealnx_init_one(struct pci_dev *pdev, 483static 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);