Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143463
b: refs/heads/master
c: 444f1a9
h: refs/heads/master
i:
  143461: ce55988
  143459: b581c18
  143455: 4a231ab
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 15, 2009
1 parent 078ae51 commit 37233c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: af22ab1bd20e9dedf3a37cc1d401ef8bbd587ef0
refs/heads/master: 444f1a92702adb9865dd8f509fd55bca9c46a78e
17 changes: 12 additions & 5 deletions trunk/drivers/net/a2065.c
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,17 @@ static struct zorro_driver a2065_driver = {
.remove = __devexit_p(a2065_remove_one),
};

static const struct net_device_ops lance_netdev_ops = {
.ndo_open = lance_open,
.ndo_stop = lance_close,
.ndo_start_xmit = lance_start_xmit,
.ndo_tx_timeout = lance_tx_timeout,
.ndo_set_multicast_list = lance_set_multicast,
.ndo_validate_addr = eth_validate_addr,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
};

static int __devinit a2065_init_one(struct zorro_dev *z,
const struct zorro_device_id *ent)
{
Expand Down Expand Up @@ -753,12 +764,8 @@ static int __devinit a2065_init_one(struct zorro_dev *z,
priv->rx_ring_mod_mask = RX_RING_MOD_MASK;
priv->tx_ring_mod_mask = TX_RING_MOD_MASK;

dev->open = &lance_open;
dev->stop = &lance_close;
dev->hard_start_xmit = &lance_start_xmit;
dev->tx_timeout = &lance_tx_timeout;
dev->netdev_ops = &lance_netdev_ops;
dev->watchdog_timeo = 5*HZ;
dev->set_multicast_list = &lance_set_multicast;
dev->dma = 0;

init_timer(&priv->multicast_timer);
Expand Down

0 comments on commit 37233c8

Please sign in to comment.