aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eql.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/eql.c')
-rw-r--r--drivers/net/eql.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/net/eql.c b/drivers/net/eql.c
index 18f1364d3d5b..40125694bd9f 100644
--- a/drivers/net/eql.c
+++ b/drivers/net/eql.c
@@ -162,6 +162,13 @@ static void eql_timer(unsigned long param)
162static char version[] __initdata = 162static char version[] __initdata =
163 "Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)\n"; 163 "Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)\n";
164 164
165static const struct net_device_ops eql_netdev_ops = {
166 .ndo_open = eql_open,
167 .ndo_stop = eql_close,
168 .ndo_do_ioctl = eql_ioctl,
169 .ndo_start_xmit = eql_slave_xmit,
170};
171
165static void __init eql_setup(struct net_device *dev) 172static void __init eql_setup(struct net_device *dev)
166{ 173{
167 equalizer_t *eql = netdev_priv(dev); 174 equalizer_t *eql = netdev_priv(dev);
@@ -175,10 +182,7 @@ static void __init eql_setup(struct net_device *dev)
175 INIT_LIST_HEAD(&eql->queue.all_slaves); 182 INIT_LIST_HEAD(&eql->queue.all_slaves);
176 eql->queue.master_dev = dev; 183 eql->queue.master_dev = dev;
177 184
178 dev->open = eql_open; 185 dev->netdev_ops = &eql_netdev_ops;
179 dev->stop = eql_close;
180 dev->do_ioctl = eql_ioctl;
181 dev->hard_start_xmit = eql_slave_xmit;
182 186
183 /* 187 /*
184 * Now we undo some of the things that eth_setup does 188 * Now we undo some of the things that eth_setup does