1 From 7ad24ea4bf620a32631d7b3069c3e30c078b0c3e Mon Sep 17 00:00:00 2001
2 From: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
3 Date: Sun, 11 May 2014 00:12:32 +0000
4 Subject: [PATCH 06/11] net: get rid of SET_ETHTOOL_OPS
6 net: get rid of SET_ETHTOOL_OPS
8 Dave Miller mentioned he'd like to see SET_ETHTOOL_OPS gone.
11 Mostly done via coccinelle script:
13 struct ethtool_ops *ops;
14 struct net_device *dev;
16 - SET_ETHTOOL_OPS(dev, ops);
17 + dev->ethtool_ops = ops;
19 Compile tested only, but I'd seriously wonder if this broke anything.
21 Suggested-by: Dave Miller <davem@davemloft.net>
22 Signed-off-by: Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
23 Acked-by: Felipe Balbi <balbi@ti.com>
24 Signed-off-by: David S. Miller <davem@davemloft.net>
26 drivers/net/hyperv/netvsc_drv.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
29 diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
30 index 1de3ef5dd5d2..2e967a7bdb33 100644
31 --- a/drivers/net/hyperv/netvsc_drv.c
32 +++ b/drivers/net/hyperv/netvsc_drv.c
33 @@ -810,7 +810,7 @@ static int netvsc_probe(struct hv_device *dev,
34 net->features = NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_SG | NETIF_F_RXCSUM |
35 NETIF_F_IP_CSUM | NETIF_F_TSO;
37 - SET_ETHTOOL_OPS(net, ðtool_ops);
38 + net->ethtool_ops = ðtool_ops;
39 SET_NETDEV_DEV(net, &dev->device);
41 /* Notify the netvsc driver of the new device */