Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149744
b: refs/heads/master
c: 2e303a9
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 16, 2009
1 parent 4313801 commit 2f892a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 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: d88106b70178a87203a23108c47eaa1f20c424b5
refs/heads/master: 2e303a929f2178420820cbfab581ca1c7efa18e8
21 changes: 14 additions & 7 deletions trunk/drivers/net/hplance.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,19 @@ static struct dio_driver hplance_driver = {
.remove = __devexit_p(hplance_remove_one),
};

static const struct net_device_ops hplance_netdev_ops = {
.ndo_open = hplance_open,
.ndo_stop = hplance_close,
.ndo_start_xmit = lance_start_xmit,
.ndo_set_multicast_list = lance_set_multicast,
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = lance_poll,
#endif
};

/* Find all the HP Lance boards and initialise them... */
static int __devinit hplance_init_one(struct dio_dev *d,
const struct dio_device_id *ent)
Expand Down Expand Up @@ -135,13 +148,7 @@ static void __init hplance_init(struct net_device *dev, struct dio_dev *d)

/* Fill the dev fields */
dev->base_addr = va;
dev->open = &hplance_open;
dev->stop = &hplance_close;
#ifdef CONFIG_NET_POLL_CONTROLLER
dev->poll_controller = lance_poll;
#endif
dev->hard_start_xmit = &lance_start_xmit;
dev->set_multicast_list = &lance_set_multicast;
dev->netdev_ops = &hplance_netdev_ops;
dev->dma = 0;

for (i=0; i<6; i++) {
Expand Down

0 comments on commit 2f892a6

Please sign in to comment.