aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-01-07 20:26:14 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-07 20:26:14 -0500
commit04fb5f735e70a27f7dd06a5e349c003fd5d4bfa2 (patch)
tree1a7637586dd21866c446981531bd0d6a76f6215b /drivers/net/ipg.c
parent83d6f0352cc47b41d42cc1d6fb31bc8d9753b772 (diff)
ipg: update to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Acked-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r--drivers/net/ipg.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c
index 7b6d435a846..360aa5e35fd 100644
--- a/drivers/net/ipg.c
+++ b/drivers/net/ipg.c
@@ -2210,6 +2210,19 @@ static void __devexit ipg_remove(struct pci_dev *pdev)
2210 pci_set_drvdata(pdev, NULL); 2210 pci_set_drvdata(pdev, NULL);
2211} 2211}
2212 2212
2213static const struct net_device_ops ipg_netdev_ops = {
2214 .ndo_open = ipg_nic_open,
2215 .ndo_stop = ipg_nic_stop,
2216 .ndo_start_xmit = ipg_nic_hard_start_xmit,
2217 .ndo_get_stats = ipg_nic_get_stats,
2218 .ndo_set_multicast_list = ipg_nic_set_multicast_list,
2219 .ndo_do_ioctl = ipg_ioctl,
2220 .ndo_tx_timeout = ipg_tx_timeout,
2221 .ndo_change_mtu = ipg_nic_change_mtu,
2222 .ndo_set_mac_address = eth_mac_addr,
2223 .ndo_validate_addr = eth_validate_addr,
2224};
2225
2213static int __devinit ipg_probe(struct pci_dev *pdev, 2226static int __devinit ipg_probe(struct pci_dev *pdev,
2214 const struct pci_device_id *id) 2227 const struct pci_device_id *id)
2215{ 2228{
@@ -2258,15 +2271,7 @@ static int __devinit ipg_probe(struct pci_dev *pdev,
2258 2271
2259 /* Declare IPG NIC functions for Ethernet device methods. 2272 /* Declare IPG NIC functions for Ethernet device methods.
2260 */ 2273 */
2261 dev->open = &ipg_nic_open; 2274 dev->netdev_ops = &ipg_netdev_ops;
2262 dev->stop = &ipg_nic_stop;
2263 dev->hard_start_xmit = &ipg_nic_hard_start_xmit;
2264 dev->get_stats = &ipg_nic_get_stats;
2265 dev->set_multicast_list = &ipg_nic_set_multicast_list;
2266 dev->do_ioctl = ipg_ioctl;
2267 dev->tx_timeout = ipg_tx_timeout;
2268 dev->change_mtu = &ipg_nic_change_mtu;
2269
2270 SET_NETDEV_DEV(dev, &pdev->dev); 2275 SET_NETDEV_DEV(dev, &pdev->dev);
2271 SET_ETHTOOL_OPS(dev, &ipg_ethtool_ops); 2276 SET_ETHTOOL_OPS(dev, &ipg_ethtool_ops);
2272 2277