aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/kaweth.c
diff options
context:
space:
mode:
authorWilfried Klaebe <w-lkml@lebenslange-mailadresse.de>2014-05-10 20:12:32 -0400
committerDavid S. Miller <davem@davemloft.net>2014-05-13 17:43:20 -0400
commit7ad24ea4bf620a32631d7b3069c3e30c078b0c3e (patch)
treecdb3585122d2c7b99106edf4cbeebfd86c5aa7bf /drivers/net/usb/kaweth.c
parent0f49ff07025e8d6cd25bce5b623881739e04926e (diff)
net: get rid of SET_ETHTOOL_OPS
net: get rid of SET_ETHTOOL_OPS Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone. This does that. Mostly done via coccinelle script: @@ struct ethtool_ops *ops; struct net_device *dev; @@ - SET_ETHTOOL_OPS(dev, ops); + dev->ethtool_ops = ops; Compile tested only, but I'd seriously wonder if this broke anything. Suggested-by: Dave Miller <davem@davemloft.net> Signed-off-by: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/kaweth.c')
-rw-r--r--drivers/net/usb/kaweth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/kaweth.c b/drivers/net/usb/kaweth.c
index a359d3bb7c5b..dcb6d33141e0 100644
--- a/drivers/net/usb/kaweth.c
+++ b/drivers/net/usb/kaweth.c
@@ -1171,7 +1171,7 @@ err_fw:
1171 netdev->netdev_ops = &kaweth_netdev_ops; 1171 netdev->netdev_ops = &kaweth_netdev_ops;
1172 netdev->watchdog_timeo = KAWETH_TX_TIMEOUT; 1172 netdev->watchdog_timeo = KAWETH_TX_TIMEOUT;
1173 netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size); 1173 netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size);
1174 SET_ETHTOOL_OPS(netdev, &ops); 1174 netdev->ethtool_ops = &ops;
1175 1175
1176 /* kaweth is zeroed as part of alloc_netdev */ 1176 /* kaweth is zeroed as part of alloc_netdev */
1177 INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl); 1177 INIT_DELAYED_WORK(&kaweth->lowmem_work, kaweth_resubmit_tl);