Commit efda0723 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

olympic: convert to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dcc59a97
...@@ -194,6 +194,15 @@ static void olympic_srb_bh(struct net_device *dev) ; ...@@ -194,6 +194,15 @@ static void olympic_srb_bh(struct net_device *dev) ;
static void olympic_asb_bh(struct net_device *dev) ; static void olympic_asb_bh(struct net_device *dev) ;
static int olympic_proc_info(char *buffer, char **start, off_t offset, int length, int *eof, void *data) ; static int olympic_proc_info(char *buffer, char **start, off_t offset, int length, int *eof, void *data) ;
static const struct net_device_ops olympic_netdev_ops = {
.ndo_open = olympic_open,
.ndo_stop = olympic_close,
.ndo_start_xmit = olympic_xmit,
.ndo_change_mtu = olympic_change_mtu,
.ndo_set_multicast_list = olympic_set_rx_mode,
.ndo_set_mac_address = olympic_set_mac_address,
};
static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{ {
struct net_device *dev ; struct net_device *dev ;
...@@ -252,13 +261,7 @@ static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device ...@@ -252,13 +261,7 @@ static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device
goto op_free_iomap; goto op_free_iomap;
} }
dev->open=&olympic_open; dev->netdev_ops = &olympic_netdev_ops;
dev->hard_start_xmit=&olympic_xmit;
dev->change_mtu=&olympic_change_mtu;
dev->stop=&olympic_close;
dev->do_ioctl=NULL;
dev->set_multicast_list=&olympic_set_rx_mode;
dev->set_mac_address=&olympic_set_mac_address ;
SET_NETDEV_DEV(dev, &pdev->dev); SET_NETDEV_DEV(dev, &pdev->dev);
pci_set_drvdata(pdev,dev) ; pci_set_drvdata(pdev,dev) ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment