Commit d0174aea authored by Alexander Beregalov's avatar Alexander Beregalov Committed by David S. Miller

mac89x0: convert to net_device_ops

Signed-off-by: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f1fa992
...@@ -168,6 +168,17 @@ writereg(struct net_device *dev, int portno, int value) ...@@ -168,6 +168,17 @@ writereg(struct net_device *dev, int portno, int value)
nubus_writew(swab16(value), dev->mem_start + portno); nubus_writew(swab16(value), dev->mem_start + portno);
} }
static const struct net_device_ops mac89x0_netdev_ops = {
.ndo_open = net_open,
.ndo_stop = net_close,
.ndo_start_xmit = net_send_packet,
.ndo_get_stats = net_get_stats,
.ndo_set_multicast_list = set_multicast_list,
.ndo_set_mac_address = set_mac_address,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
};
/* Probe for the CS8900 card in slot E. We won't bother looking /* Probe for the CS8900 card in slot E. We won't bother looking
anywhere else until we have a really good reason to do so. */ anywhere else until we have a really good reason to do so. */
struct net_device * __init mac89x0_probe(int unit) struct net_device * __init mac89x0_probe(int unit)
...@@ -280,12 +291,7 @@ struct net_device * __init mac89x0_probe(int unit) ...@@ -280,12 +291,7 @@ struct net_device * __init mac89x0_probe(int unit)
printk(" IRQ %d ADDR %pM\n", dev->irq, dev->dev_addr); printk(" IRQ %d ADDR %pM\n", dev->irq, dev->dev_addr);
dev->open = net_open; dev->netdev_ops = &mac89x0_netdev_ops;
dev->stop = net_close;
dev->hard_start_xmit = net_send_packet;
dev->get_stats = net_get_stats;
dev->set_multicast_list = &set_multicast_list;
dev->set_mac_address = &set_mac_address;
err = register_netdev(dev); err = register_netdev(dev);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment