diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2009-07-09 13:54:35 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-12 17:20:02 -0400 |
commit | 240c102d9c54fee7fdc87a4ef2fabc7eb539e00a (patch) | |
tree | f176b03249adbb1e3e495a8657cbc864ac76a71c /drivers/net/usb | |
parent | f2ba025b2036e52a176cddcf91b15ac2b10c644a (diff) |
netdev: restore MAC address set and validate operations
alloc_etherdev() used to install default implementations of these
operations, but they must now be explicitly installed in struct
net_device_ops.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/kaweth.c | 2 | ||||
-rw-r--r-- | drivers/net/usb/pegasus.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c index e01314789718..238bea199cc6 100644 --- a/drivers/net/usb/kaweth.c +++ b/drivers/net/usb/kaweth.c | |||
@@ -999,6 +999,8 @@ static const struct net_device_ops kaweth_netdev_ops = { | |||
999 | .ndo_tx_timeout = kaweth_tx_timeout, | 999 | .ndo_tx_timeout = kaweth_tx_timeout, |
1000 | .ndo_set_multicast_list = kaweth_set_rx_mode, | 1000 | .ndo_set_multicast_list = kaweth_set_rx_mode, |
1001 | .ndo_get_stats = kaweth_netdev_stats, | 1001 | .ndo_get_stats = kaweth_netdev_stats, |
1002 | .ndo_set_mac_address = eth_mac_addr, | ||
1003 | .ndo_validate_addr = eth_validate_addr, | ||
1002 | }; | 1004 | }; |
1003 | 1005 | ||
1004 | static int kaweth_probe( | 1006 | static int kaweth_probe( |
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index 73acbd244aa1..9bea2af4a24d 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c | |||
@@ -1493,6 +1493,8 @@ static const struct net_device_ops pegasus_netdev_ops = { | |||
1493 | .ndo_set_multicast_list = pegasus_set_multicast, | 1493 | .ndo_set_multicast_list = pegasus_set_multicast, |
1494 | .ndo_get_stats = pegasus_netdev_stats, | 1494 | .ndo_get_stats = pegasus_netdev_stats, |
1495 | .ndo_tx_timeout = pegasus_tx_timeout, | 1495 | .ndo_tx_timeout = pegasus_tx_timeout, |
1496 | .ndo_set_mac_address = eth_mac_addr, | ||
1497 | .ndo_validate_addr = eth_validate_addr, | ||
1496 | }; | 1498 | }; |
1497 | 1499 | ||
1498 | static struct usb_driver pegasus_driver = { | 1500 | static struct usb_driver pegasus_driver = { |