diff options
author | Wilfried Klaebe <w-lkml@lebenslange-mailadresse.de> | 2014-05-10 20:12:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-13 17:43:20 -0400 |
commit | 7ad24ea4bf620a32631d7b3069c3e30c078b0c3e (patch) | |
tree | cdb3585122d2c7b99106edf4cbeebfd86c5aa7bf /drivers/s390 | |
parent | 0f49ff07025e8d6cd25bce5b623881739e04926e (diff) |
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 7 | ||||
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index e232ceca38fe..5ef5b4f45758 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c | |||
@@ -969,10 +969,9 @@ static int qeth_l2_setup_netdev(struct qeth_card *card) | |||
969 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 969 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
970 | card->dev->mtu = card->info.initial_mtu; | 970 | card->dev->mtu = card->info.initial_mtu; |
971 | card->dev->netdev_ops = &qeth_l2_netdev_ops; | 971 | card->dev->netdev_ops = &qeth_l2_netdev_ops; |
972 | if (card->info.type != QETH_CARD_TYPE_OSN) | 972 | card->dev->ethtool_ops = |
973 | SET_ETHTOOL_OPS(card->dev, &qeth_l2_ethtool_ops); | 973 | (card->info.type != QETH_CARD_TYPE_OSN) ? |
974 | else | 974 | &qeth_l2_ethtool_ops : &qeth_l2_osn_ops; |
975 | SET_ETHTOOL_OPS(card->dev, &qeth_l2_osn_ops); | ||
976 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; | 975 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER; |
977 | card->info.broadcast_capable = 1; | 976 | card->info.broadcast_capable = 1; |
978 | qeth_l2_request_initial_mac(card); | 977 | qeth_l2_request_initial_mac(card); |
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index bc2499a24884..c58f82af3658 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c | |||
@@ -3301,7 +3301,7 @@ static int qeth_l3_setup_netdev(struct qeth_card *card) | |||
3301 | card->dev->ml_priv = card; | 3301 | card->dev->ml_priv = card; |
3302 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; | 3302 | card->dev->watchdog_timeo = QETH_TX_TIMEOUT; |
3303 | card->dev->mtu = card->info.initial_mtu; | 3303 | card->dev->mtu = card->info.initial_mtu; |
3304 | SET_ETHTOOL_OPS(card->dev, &qeth_l3_ethtool_ops); | 3304 | card->dev->ethtool_ops = &qeth_l3_ethtool_ops; |
3305 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_TX | | 3305 | card->dev->features |= NETIF_F_HW_VLAN_CTAG_TX | |
3306 | NETIF_F_HW_VLAN_CTAG_RX | | 3306 | NETIF_F_HW_VLAN_CTAG_RX | |
3307 | NETIF_F_HW_VLAN_CTAG_FILTER; | 3307 | NETIF_F_HW_VLAN_CTAG_FILTER; |