Skip to content
Commit 7ad24ea4 authored by Wilfried Klaebe's avatar Wilfried Klaebe Committed by David S. Miller
Browse files

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: default avatarDave Miller <davem@davemloft.net>
Signed-off-by: default avatarWilfried Klaebe <w-lkml@lebenslange-mailadresse.de>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0f49ff07
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment