Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143443
b: refs/heads/master
c: d0174ae
h: refs/heads/master
i:
  143441: 9a94ab0
  143439: d7b9548
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 13, 2009
1 parent 55e6cd7 commit 216a4d2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f1fa992382cf8bb82002aaf19fa03bf67330254
refs/heads/master: d0174aea3ee8d51a82b5793c3a177efff89121fa
18 changes: 12 additions & 6 deletions trunk/drivers/net/mac89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,17 @@ writereg(struct net_device *dev, int portno, int value)
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
anywhere else until we have a really good reason to do so. */
struct net_device * __init mac89x0_probe(int unit)
Expand Down Expand Up @@ -280,12 +291,7 @@ struct net_device * __init mac89x0_probe(int unit)

printk(" IRQ %d ADDR %pM\n", dev->irq, dev->dev_addr);

dev->open = net_open;
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;
dev->netdev_ops = &mac89x0_netdev_ops;

err = register_netdev(dev);
if (err)
Expand Down

0 comments on commit 216a4d2

Please sign in to comment.