Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 86469da4eacf7844dcb1cfb7d089cfbe44f30aac Author: Wilfried Klaebe w-lkml@lebenslange-mailadresse.de Date: Wed May 14 19:54:35 2014 +0800
batman-adv: 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
86469da4eacf7844dcb1cfb7d089cfbe44f30aac soft-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/soft-interface.c b/soft-interface.c index 9f070de..c7580be 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -890,7 +890,7 @@ static void batadv_softif_init_early(struct net_device *dev) /* generate random address */ eth_hw_addr_random(dev);
- SET_ETHTOOL_OPS(dev, &batadv_ethtool_ops); + dev->ethtool_ops = &batadv_ethtool_ops;
memset(priv, 0, sizeof(*priv)); }