Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143444
b: refs/heads/master
c: 9b6bfec
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and David S. Miller committed Apr 13, 2009
1 parent 216a4d2 commit 55c9b5e
Show file tree
Hide file tree
Showing 2 changed files with 14 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: d0174aea3ee8d51a82b5793c3a177efff89121fa
refs/heads/master: 9b6bfecd6556b9844a70147fe94dd86bb00aee97
20 changes: 13 additions & 7 deletions trunk/drivers/net/isa-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,18 @@ struct net_device * __init netcard_probe(int unit)
}
#endif

static const struct net_device_ops netcard_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_tx_timeout = net_tx_timeout,
.ndo_validate_addr = eth_validate_addr,
.ndo_set_mac_address = eth_mac_addr,
.ndo_change_mtu = eth_change_mtu,
};

/*
* This is the real probe routine. Linux has a history of friendly device
* probes on the ISA bus. A good device probes avoids doing writes, and
Expand Down Expand Up @@ -303,13 +315,7 @@ static int __init netcard_probe1(struct net_device *dev, int ioaddr)
np = netdev_priv(dev);
spin_lock_init(&np->lock);

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->tx_timeout = &net_tx_timeout;
dev->netdev_ops = &netcard_netdev_ops;
dev->watchdog_timeo = MY_TX_TIMEOUT;

err = register_netdev(dev);
Expand Down

0 comments on commit 55c9b5e

Please sign in to comment.