aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:26 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:31 -0500
commit69d651692f16c5e883f6af3d0eb36bdac5438f9c (patch)
tree949441547ae583fc77f545ad513478adcd23a203 /drivers/net/tokenring
parentf1608f859a3fba95a3b0ae70f2528b81c6928d77 (diff)
3c559: convert 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/tokenring')
-rw-r--r--drivers/net/tokenring/3c359.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/net/tokenring/3c359.c b/drivers/net/tokenring/3c359.c
index 43853e3b210e..4a65fc2dd928 100644
--- a/drivers/net/tokenring/3c359.c
+++ b/drivers/net/tokenring/3c359.c
@@ -274,6 +274,15 @@ static void xl_ee_write(struct net_device *dev, int ee_addr, u16 ee_value)
274 274
275 return ; 275 return ;
276} 276}
277
278static const struct net_device_ops xl_netdev_ops = {
279 .ndo_open = xl_open,
280 .ndo_stop = xl_close,
281 .ndo_start_xmit = xl_xmit,
282 .ndo_change_mtu = xl_change_mtu,
283 .ndo_set_multicast_list = xl_set_rx_mode,
284 .ndo_set_mac_address = xl_set_mac_address,
285};
277 286
278static int __devinit xl_probe(struct pci_dev *pdev, 287static int __devinit xl_probe(struct pci_dev *pdev,
279 const struct pci_device_id *ent) 288 const struct pci_device_id *ent)
@@ -337,13 +346,7 @@ static int __devinit xl_probe(struct pci_dev *pdev,
337 return i ; 346 return i ;
338 } 347 }
339 348
340 dev->open=&xl_open; 349 dev->netdev_ops = &xl_netdev_ops;
341 dev->hard_start_xmit=&xl_xmit;
342 dev->change_mtu=&xl_change_mtu;
343 dev->stop=&xl_close;
344 dev->do_ioctl=NULL;
345 dev->set_multicast_list=&xl_set_rx_mode;
346 dev->set_mac_address=&xl_set_mac_address ;
347 SET_NETDEV_DEV(dev, &pdev->dev); 350 SET_NETDEV_DEV(dev, &pdev->dev);
348 351
349 pci_set_drvdata(pdev,dev) ; 352 pci_set_drvdata(pdev,dev) ;