diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-04-15 08:53:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-16 05:20:26 -0400 |
commit | 2160187a0a1cdeeeff1d41f53333bea91c82f259 (patch) | |
tree | 6956114ead89a57fbe5dbd2d3c29206211b89bff | |
parent | ec4e0cff9b8c97f5d63c8f1bdf7f44fb65fa8e3b (diff) |
sun3lance: convert to net_device_ops
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/sun3lance.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/sun3lance.c b/drivers/net/sun3lance.c index e5beb299cbd0..9bd9dadb8534 100644 --- a/drivers/net/sun3lance.c +++ b/drivers/net/sun3lance.c | |||
@@ -294,6 +294,16 @@ out: | |||
294 | return ERR_PTR(err); | 294 | return ERR_PTR(err); |
295 | } | 295 | } |
296 | 296 | ||
297 | static const struct net_device_ops lance_netdev_ops = { | ||
298 | .ndo_open = lance_open, | ||
299 | .ndo_stop = lance_close, | ||
300 | .ndo_start_xmit = lance_start_xmit, | ||
301 | .ndo_set_multicast_list = set_multicast_list, | ||
302 | .ndo_set_mac_address = NULL, | ||
303 | .ndo_change_mtu = eth_change_mtu, | ||
304 | .ndo_validate_addr = eth_validate_addr, | ||
305 | }; | ||
306 | |||
297 | static int __init lance_probe( struct net_device *dev) | 307 | static int __init lance_probe( struct net_device *dev) |
298 | { | 308 | { |
299 | unsigned long ioaddr; | 309 | unsigned long ioaddr; |
@@ -397,12 +407,7 @@ static int __init lance_probe( struct net_device *dev) | |||
397 | if (did_version++ == 0) | 407 | if (did_version++ == 0) |
398 | printk( version ); | 408 | printk( version ); |
399 | 409 | ||
400 | /* The LANCE-specific entries in the device structure. */ | 410 | dev->netdev_ops = &lance_netdev_ops; |
401 | dev->open = &lance_open; | ||
402 | dev->hard_start_xmit = &lance_start_xmit; | ||
403 | dev->stop = &lance_close; | ||
404 | dev->set_multicast_list = &set_multicast_list; | ||
405 | dev->set_mac_address = NULL; | ||
406 | // KLUDGE -- REMOVE ME | 411 | // KLUDGE -- REMOVE ME |
407 | set_bit(__LINK_STATE_PRESENT, &dev->state); | 412 | set_bit(__LINK_STATE_PRESENT, &dev->state); |
408 | 413 | ||