Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133798
b: refs/heads/master
c: 878f648
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 21, 2009
1 parent 462029d commit e6dfc0f
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: a1799af4d7deefccdaa9d222a886fa1373dbb49a
refs/heads/master: 878f64856d152ea4bab7dc3c279d0ee117901e1c
17 changes: 12 additions & 5 deletions trunk/drivers/net/3c501.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,17 @@ struct net_device * __init el1_probe(int unit)
return ERR_PTR(err);
}

static const struct net_device_ops el_netdev_ops = {
.ndo_open = el_open,
.ndo_stop = el1_close,
.ndo_start_xmit = el_start_xmit,
.ndo_tx_timeout = el_timeout,
.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,
};

/**
* el1_probe1:
* @dev: The device structure to use
Expand Down Expand Up @@ -305,12 +316,8 @@ static int __init el1_probe1(struct net_device *dev, int ioaddr)
* The EL1-specific entries in the device structure.
*/

dev->open = &el_open;
dev->hard_start_xmit = &el_start_xmit;
dev->tx_timeout = &el_timeout;
dev->netdev_ops = &el_netdev_ops;
dev->watchdog_timeo = HZ;
dev->stop = &el1_close;
dev->set_multicast_list = &set_multicast_list;
dev->ethtool_ops = &netdev_ethtool_ops;
return 0;
}
Expand Down

0 comments on commit e6dfc0f

Please sign in to comment.