Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133811
b: refs/heads/master
c: efda072
h: refs/heads/master
i:
  133809: ea0f855
  133807: a6e7b75
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 77c3cf0 commit b2cd53e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dcc59a9789fee98782aa2f3215bbea071bd643b1
refs/heads/master: efda072393fb4213e43d92bdd20cf180a06a8eb0
17 changes: 10 additions & 7 deletions trunk/drivers/net/tokenring/olympic.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ static void olympic_srb_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 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)
{
struct net_device *dev ;
Expand Down Expand Up @@ -252,13 +261,7 @@ static int __devinit olympic_probe(struct pci_dev *pdev, const struct pci_device
goto op_free_iomap;
}

dev->open=&olympic_open;
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 ;
dev->netdev_ops = &olympic_netdev_ops;
SET_NETDEV_DEV(dev, &pdev->dev);

pci_set_drvdata(pdev,dev) ;
Expand Down

0 comments on commit b2cd53e

Please sign in to comment.