提交 a6e28b34 编写于 作者: D Devendra Naga 提交者: Greg Kroah-Hartman

staging/et131x: use SET_ETHTOOL_OPS directly

using a wrapper around SET_ETHTOOL_OPS macro is not actually required,

remove and use SET_ETHTOOL_OPS directly.
Signed-off-by: NDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 13a05eaa
...@@ -3943,12 +3943,6 @@ static struct ethtool_ops et131x_ethtool_ops = { ...@@ -3943,12 +3943,6 @@ static struct ethtool_ops et131x_ethtool_ops = {
.get_regs = et131x_get_regs, .get_regs = et131x_get_regs,
.get_link = ethtool_op_get_link, .get_link = ethtool_op_get_link,
}; };
static void et131x_set_ethtool_ops(struct net_device *netdev)
{
SET_ETHTOOL_OPS(netdev, &et131x_ethtool_ops);
}
/** /**
* et131x_hwaddr_init - set up the MAC Address on the ET1310 * et131x_hwaddr_init - set up the MAC Address on the ET1310
* @adapter: pointer to our private adapter structure * @adapter: pointer to our private adapter structure
...@@ -5301,7 +5295,7 @@ static int __devinit et131x_pci_setup(struct pci_dev *pdev, ...@@ -5301,7 +5295,7 @@ static int __devinit et131x_pci_setup(struct pci_dev *pdev,
netdev->netdev_ops = &et131x_netdev_ops; netdev->netdev_ops = &et131x_netdev_ops;
SET_NETDEV_DEV(netdev, &pdev->dev); SET_NETDEV_DEV(netdev, &pdev->dev);
et131x_set_ethtool_ops(netdev); SET_ETHTOOL_OPS(netdev, &et131x_ethtool_ops);
adapter = et131x_adapter_init(netdev, pdev); adapter = et131x_adapter_init(netdev, pdev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册