mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: Wilfried Klaebe <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
0f49ff0702
commit
7ad24ea4bf
108 changed files with 118 additions and 128 deletions
|
|
@ -346,7 +346,7 @@ dsa_slave_create(struct dsa_switch *ds, struct device *parent,
|
|||
return slave_dev;
|
||||
|
||||
slave_dev->features = master->vlan_features;
|
||||
SET_ETHTOOL_OPS(slave_dev, &dsa_slave_ethtool_ops);
|
||||
slave_dev->ethtool_ops = &dsa_slave_ethtool_ops;
|
||||
eth_hw_addr_inherit(slave_dev, master);
|
||||
slave_dev->tx_queue_len = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue