Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135386
b: refs/heads/master
c: 4113a1a
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 129d843 commit 2f876f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 66ee279ff2747bd23f54886369133b1086b87252
refs/heads/master: 4113a1a672e5b3f03fc99e7240d4c47e689af2c6
13 changes: 8 additions & 5 deletions trunk/drivers/net/irda/w83977af_ir.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ static void __exit w83977af_cleanup(void)
}
}

static const struct net_device_ops w83977_netdev_ops = {
.ndo_open = w83977af_net_open,
.ndo_stop = w83977af_net_close,
.ndo_start_xmit = w83977af_hard_xmit,
.ndo_do_ioctl = w83977af_net_ioctl,
};

/*
* Function w83977af_open (iobase, irq)
*
Expand Down Expand Up @@ -231,11 +238,7 @@ static int w83977af_open(int i, unsigned int iobase, unsigned int irq,
self->rx_buff.data = self->rx_buff.head;
self->netdev = dev;

/* Override the network functions we need to use */
dev->hard_start_xmit = w83977af_hard_xmit;
dev->open = w83977af_net_open;
dev->stop = w83977af_net_close;
dev->do_ioctl = w83977af_net_ioctl;
dev->netdev_ops = &w83977_netdev_ops;

err = register_netdev(dev);
if (err) {
Expand Down

0 comments on commit 2f876f8

Please sign in to comment.