diff options
author | Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de> | 2014-05-10 20:12:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-13 17:43:20 -0400 |
commit | 7ad24ea4bf620a32631d7b3069c3e30c078b0c3e (patch) | |
tree | cdb3585122d2c7b99106edf4cbeebfd86c5aa7bf /drivers/net/ethernet/dlink | |
parent | 0f49ff07025e8d6cd25bce5b623881739e04926e (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/ethernet/dlink')
-rw-r--r-- | drivers/net/ethernet/dlink/dl2k.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/dlink/sundance.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c index 4fb756d219f7..2324f2ddfd48 100644 --- a/drivers/net/ethernet/dlink/dl2k.c +++ b/drivers/net/ethernet/dlink/dl2k.c | |||
@@ -227,7 +227,7 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
227 | } | 227 | } |
228 | dev->netdev_ops = &netdev_ops; | 228 | dev->netdev_ops = &netdev_ops; |
229 | dev->watchdog_timeo = TX_TIMEOUT; | 229 | dev->watchdog_timeo = TX_TIMEOUT; |
230 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 230 | dev->ethtool_ops = ðtool_ops; |
231 | #if 0 | 231 | #if 0 |
232 | dev->features = NETIF_F_IP_CSUM; | 232 | dev->features = NETIF_F_IP_CSUM; |
233 | #endif | 233 | #endif |
diff --git a/drivers/net/ethernet/dlink/sundance.c b/drivers/net/ethernet/dlink/sundance.c index d9e5ca0d48c1..433c1e185442 100644 --- a/drivers/net/ethernet/dlink/sundance.c +++ b/drivers/net/ethernet/dlink/sundance.c | |||
@@ -577,7 +577,7 @@ static int sundance_probe1(struct pci_dev *pdev, | |||
577 | 577 | ||
578 | /* The chip-specific entries in the device structure. */ | 578 | /* The chip-specific entries in the device structure. */ |
579 | dev->netdev_ops = &netdev_ops; | 579 | dev->netdev_ops = &netdev_ops; |
580 | SET_ETHTOOL_OPS(dev, ðtool_ops); | 580 | dev->ethtool_ops = ðtool_ops; |
581 | dev->watchdog_timeo = TX_TIMEOUT; | 581 | dev->watchdog_timeo = TX_TIMEOUT; |
582 | 582 | ||
583 | pci_set_drvdata(pdev, dev); | 583 | pci_set_drvdata(pdev, dev); |