diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-12-09 12:10:25 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-10 15:55:24 -0800 |
commit | ed4ba4b5b96742d29225308ccccbdb1810b63064 (patch) | |
tree | 2c28a534d7b7fe4ed58925401d69b14df90323be /drivers/net/ibmveth.c | |
parent | e596e6e4d578f2639416e620d367a3af34814a40 (diff) | |
download | op-kernel-dev-ed4ba4b5b96742d29225308ccccbdb1810b63064.zip op-kernel-dev-ed4ba4b5b96742d29225308ccccbdb1810b63064.tar.gz |
netdev: Use default implementation of ethtool_ops::get_link where possible
Various drivers are using implementations of ethtool_ops::get_link
that are equivalent to the default ethtool_op_get_link(). Change
them to use that instead.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibmveth.c')
-rw-r--r-- | drivers/net/ibmveth.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index c454b45..5522d45 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c @@ -729,11 +729,6 @@ static void netdev_get_drvinfo(struct net_device *dev, sizeof(info->version) - 1); } -static u32 netdev_get_link(struct net_device *dev) -{ - return 1; -} - static void ibmveth_set_rx_csum_flags(struct net_device *dev, u32 data) { struct ibmveth_adapter *adapter = netdev_priv(dev); @@ -918,7 +913,7 @@ static void ibmveth_get_ethtool_stats(struct net_device *dev, static const struct ethtool_ops netdev_ethtool_ops = { .get_drvinfo = netdev_get_drvinfo, .get_settings = netdev_get_settings, - .get_link = netdev_get_link, + .get_link = ethtool_op_get_link, .set_tx_csum = ibmveth_set_tx_csum, .get_rx_csum = ibmveth_get_rx_csum, .set_rx_csum = ibmveth_set_rx_csum, |