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>
This commit is contained in:

gecommit door
David S. Miller

bovenliggende
0f49ff0702
commit
7ad24ea4bf
@@ -1504,15 +1504,15 @@ ks8695_probe(struct platform_device *pdev)
|
||||
if (ksp->phyiface_regs && ksp->link_irq == -1) {
|
||||
ks8695_init_switch(ksp);
|
||||
ksp->dtype = KS8695_DTYPE_LAN;
|
||||
SET_ETHTOOL_OPS(ndev, &ks8695_ethtool_ops);
|
||||
ndev->ethtool_ops = &ks8695_ethtool_ops;
|
||||
} else if (ksp->phyiface_regs && ksp->link_irq != -1) {
|
||||
ks8695_init_wan_phy(ksp);
|
||||
ksp->dtype = KS8695_DTYPE_WAN;
|
||||
SET_ETHTOOL_OPS(ndev, &ks8695_wan_ethtool_ops);
|
||||
ndev->ethtool_ops = &ks8695_wan_ethtool_ops;
|
||||
} else {
|
||||
/* No initialisation since HPNA does not have a PHY */
|
||||
ksp->dtype = KS8695_DTYPE_HPNA;
|
||||
SET_ETHTOOL_OPS(ndev, &ks8695_ethtool_ops);
|
||||
ndev->ethtool_ops = &ks8695_ethtool_ops;
|
||||
}
|
||||
|
||||
/* And bring up the net_device with the net core */
|
||||
|
Verwijs in nieuw issue
Block a user