Re: [PATCH] [resend] net: get rid of SET_ETHTOOL_OPS

From
David Miller <davem@davemloft.net>
Date
2014-05-13 21:43:58
Also in
batman, bridge, linux-rdma, linux-s390, linuxppc-dev, lkml, netdev
Reply to
Wilfried Klaebe, 2014-05-11
From: Wilfried Klaebe <redacted>
Date: Sun, 11 May 2014 00:12:32 +0000
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 <redacted>
Applied to net-next, thanks.
Thread (5 messages) 5 messages, 4 authors, last reply 2014-05-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help