Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143421
b: refs/heads/master
c: f97b1f2
h: refs/heads/master
i:
  143419: baf18de
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 11, 2009
1 parent f73e6a6 commit e62a276
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 15efc02b2625f1bb2b1970b1f4bc777590b9ed73
refs/heads/master: f97b1f2a416045c7a9c7e62d575a809bc32c0f1e
19 changes: 13 additions & 6 deletions trunk/drivers/net/ariadne.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ static struct zorro_driver ariadne_driver = {
.remove = __devexit_p(ariadne_remove_one),
};

static const struct net_device_ops ariadne_netdev_ops = {
.ndo_open = ariadne_open,
.ndo_stop = ariadne_close,
.ndo_start_xmit = ariadne_start_xmit,
.ndo_tx_timeout = ariadne_tx_timeout,
.ndo_get_stats = ariadne_get_stats,
.ndo_set_multicast_list = set_multicast_list,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
};

static int __devinit ariadne_init_one(struct zorro_dev *z,
const struct zorro_device_id *ent)
{
Expand Down Expand Up @@ -197,13 +209,8 @@ static int __devinit ariadne_init_one(struct zorro_dev *z,
dev->mem_start = ZTWO_VADDR(mem_start);
dev->mem_end = dev->mem_start+ARIADNE_RAM_SIZE;

dev->open = &ariadne_open;
dev->stop = &ariadne_close;
dev->hard_start_xmit = &ariadne_start_xmit;
dev->tx_timeout = &ariadne_tx_timeout;
dev->netdev_ops = &ariadne_netdev_ops;
dev->watchdog_timeo = 5*HZ;
dev->get_stats = &ariadne_get_stats;
dev->set_multicast_list = &set_multicast_list;

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

0 comments on commit e62a276

Please sign in to comment.