aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */