Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122073
b: refs/heads/master
c: 99921b7
h: refs/heads/master
i:
  122071: ad95f62
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Nov 22, 2008
1 parent 76fbfc0 commit a7edae6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 974acda0ea3261436ddf5fd7e79b56150acdb138
refs/heads/master: 99921b7e64f7726e7134046f8e1e8004e2711f30
12 changes: 8 additions & 4 deletions trunk/drivers/net/eql.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ static void eql_timer(unsigned long param)
static char version[] __initdata =
"Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)\n";

static const struct net_device_ops eql_netdev_ops = {
.ndo_open = eql_open,
.ndo_stop = eql_close,
.ndo_do_ioctl = eql_ioctl,
.ndo_start_xmit = eql_slave_xmit,
};

static void __init eql_setup(struct net_device *dev)
{
equalizer_t *eql = netdev_priv(dev);
Expand All @@ -175,10 +182,7 @@ static void __init eql_setup(struct net_device *dev)
INIT_LIST_HEAD(&eql->queue.all_slaves);
eql->queue.master_dev = dev;

dev->open = eql_open;
dev->stop = eql_close;
dev->do_ioctl = eql_ioctl;
dev->hard_start_xmit = eql_slave_xmit;
dev->netdev_ops = &eql_netdev_ops;

/*
* Now we undo some of the things that eth_setup does
Expand Down

0 comments on commit a7edae6

Please sign in to comment.