aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/3c507.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2009-01-09 08:01:13 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-21 17:02:23 -0500
commit1722de5098cb5a680945cb68c57be5b2bf67b52d (patch)
treeeeb6a5ab10187e82e24d99a2673f8662ec87cfc3 /drivers/net/3c507.c
parente6c42b782684cd582599d5c177516ee27d50deb8 (diff)
3c507: convert to net_device_ops
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/3c507.c')
-rw-r--r--drivers/net/3c507.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c
index 423e65d0ba73..fbbaf826deff 100644
--- a/drivers/net/3c507.c
+++ b/drivers/net/3c507.c
@@ -352,6 +352,16 @@ out:
352 return ERR_PTR(err); 352 return ERR_PTR(err);
353} 353}
354 354
355static const struct net_device_ops netdev_ops = {
356 .ndo_open = el16_open,
357 .ndo_stop = el16_close,
358 .ndo_start_xmit = el16_send_packet,
359 .ndo_tx_timeout = el16_tx_timeout,
360 .ndo_change_mtu = eth_change_mtu,
361 .ndo_set_mac_address = eth_mac_addr,
362 .ndo_validate_addr = eth_validate_addr,
363};
364
355static int __init el16_probe1(struct net_device *dev, int ioaddr) 365static int __init el16_probe1(struct net_device *dev, int ioaddr)
356{ 366{
357 static unsigned char init_ID_done, version_printed; 367 static unsigned char init_ID_done, version_printed;
@@ -449,10 +459,7 @@ static int __init el16_probe1(struct net_device *dev, int ioaddr)
449 goto out1; 459 goto out1;
450 } 460 }
451 461
452 dev->open = el16_open; 462 dev->netdev_ops = &netdev_ops;
453 dev->stop = el16_close;
454 dev->hard_start_xmit = el16_send_packet;
455 dev->tx_timeout = el16_tx_timeout;
456 dev->watchdog_timeo = TX_TIMEOUT; 463 dev->watchdog_timeo = TX_TIMEOUT;
457 dev->ethtool_ops = &netdev_ethtool_ops; 464 dev->ethtool_ops = &netdev_ethtool_ops;
458 dev->flags &= ~IFF_MULTICAST; /* Multicast doesn't work */ 465 dev->flags &= ~IFF_MULTICAST; /* Multicast doesn't work */