Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136080
b: refs/heads/master
c: 32670c3
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Mar 27, 2009
1 parent 5cec965 commit 1008c56
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: b20417db3149a9de87e4b4594bcf5f713031c507
refs/heads/master: 32670c36d0222e2fdfa9673bb878e0f347411cd4
17 changes: 12 additions & 5 deletions trunk/drivers/net/smc9194.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,17 @@ static int __init smc_findirq(int ioaddr)
#endif
}

static const struct net_device_ops smc_netdev_ops = {
.ndo_open = smc_open,
.ndo_stop = smc_close,
.ndo_start_xmit = smc_wait_to_send_packet,
.ndo_tx_timeout = smc_timeout,
.ndo_set_multicast_list = smc_set_multicast_list,
.ndo_change_mtu = eth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

/*----------------------------------------------------------------------
. Function: smc_probe( int ioaddr )
.
Expand Down Expand Up @@ -1044,12 +1055,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
goto err_out;
}

dev->open = smc_open;
dev->stop = smc_close;
dev->hard_start_xmit = smc_wait_to_send_packet;
dev->tx_timeout = smc_timeout;
dev->netdev_ops = &smc_netdev_ops;
dev->watchdog_timeo = HZ/20;
dev->set_multicast_list = smc_set_multicast_list;

return 0;

Expand Down

0 comments on commit 1008c56

Please sign in to comment.