Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127816
b: refs/heads/master
c: 5ec38f3
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jan 8, 2009
1 parent 070b74f commit 8c1e8e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: e8ac9c55f28482f5b2f497a8e7eb90985db237c2
refs/heads/master: 5ec38f3023217fc164763d2a5505dee806d84223
16 changes: 10 additions & 6 deletions trunk/drivers/usb/gadget/u_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,14 @@ static int __init get_ether_addr(const char *str, u8 *dev_addr)

static struct eth_dev *the_dev;

static const struct net_device_ops eth_netdev_ops = {
.ndo_open = eth_open,
.ndo_stop = eth_stop,
.ndo_start_xmit = eth_start_xmit,
.ndo_change_mtu = ueth_change_mtu,
.ndo_set_mac_address = eth_mac_addr,
.ndo_validate_addr = eth_validate_addr,
};

/**
* gether_setup - initialize one ethernet-over-usb link
Expand Down Expand Up @@ -764,12 +772,8 @@ int __init gether_setup(struct usb_gadget *g, u8 ethaddr[ETH_ALEN])
if (ethaddr)
memcpy(ethaddr, dev->host_mac, ETH_ALEN);

net->change_mtu = ueth_change_mtu;
net->hard_start_xmit = eth_start_xmit;
net->open = eth_open;
net->stop = eth_stop;
/* watchdog_timeo, tx_timeout ... */
/* set_multicast_list */
net->netdev_ops = &eth_netdev_ops;

SET_ETHTOOL_OPS(net, &ops);

/* two kinds of host-initiated state changes:
Expand Down

0 comments on commit 8c1e8e6

Please sign in to comment.