aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-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) ;