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>
此提交包含在:
@@ -524,7 +524,7 @@ static int ipheth_probe(struct usb_interface *intf,
|
||||
usb_set_intfdata(intf, dev);
|
||||
|
||||
SET_NETDEV_DEV(netdev, &intf->dev);
|
||||
SET_ETHTOOL_OPS(netdev, &ops);
|
||||
netdev->ethtool_ops = &ops;
|
||||
|
||||
retval = register_netdev(netdev);
|
||||
if (retval) {
|
||||
|
新增問題並參考
封鎖使用者