Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135413
b: refs/heads/master
c: 28b1801
h: refs/heads/master
i:
  135411: 297d0b6
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 22, 2009
1 parent 2fe2794 commit 0fffbea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 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: 496f98cd5687770f4cb463c300510016dfbc81f6
refs/heads/master: 28b1801d5a367adaf3d02605c762a59781d99664
23 changes: 14 additions & 9 deletions trunk/drivers/net/pcmcia/nmclan_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,19 @@ static const struct ethtool_ops netdev_ethtool_ops;

static void nmclan_detach(struct pcmcia_device *p_dev);

static const struct net_device_ops mace_netdev_ops = {
.ndo_open = mace_open,
.ndo_stop = mace_close,
.ndo_start_xmit = mace_start_xmit,
.ndo_tx_timeout = mace_tx_timeout,
.ndo_set_config = mace_config,
.ndo_get_stats = mace_get_stats,
.ndo_set_multicast_list = set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

/* ----------------------------------------------------------------------------
nmclan_attach
Creates an "instance" of the driver, allocating local data
Expand Down Expand Up @@ -474,17 +487,9 @@ static int nmclan_probe(struct pcmcia_device *link)

lp->tx_free_frames=AM2150_MAX_TX_FRAMES;

dev->hard_start_xmit = &mace_start_xmit;
dev->set_config = &mace_config;
dev->get_stats = &mace_get_stats;
dev->set_multicast_list = &set_multicast_list;
dev->netdev_ops = &mace_netdev_ops;
SET_ETHTOOL_OPS(dev, &netdev_ethtool_ops);
dev->open = &mace_open;
dev->stop = &mace_close;
#ifdef HAVE_TX_TIMEOUT
dev->tx_timeout = mace_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
#endif

return nmclan_config(link);
} /* nmclan_attach */
Expand Down

0 comments on commit 0fffbea

Please sign in to comment.