diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-10-31 02:04:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 11:45:57 -0400 |
commit | 83cdbc7da7a9b6d5413c27ebb05cf6d505469462 (patch) | |
tree | f798d43e912108feea33365c5a7f283e6b91117a | |
parent | a268adb1c848c90c8adfafdf647b0d8d8f90eaff (diff) |
net/macb: remove macb_get_drvinfo()
This function has little meaning so remove it altogether and
let ethtool core fill in the fields automatically.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Ben Hutchings <bhutchings@solarflare.com>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index b161d7318e29..4db52f318efe 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c | |||
@@ -1225,20 +1225,9 @@ static int macb_set_settings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
1225 | return phy_ethtool_sset(phydev, cmd); | 1225 | return phy_ethtool_sset(phydev, cmd); |
1226 | } | 1226 | } |
1227 | 1227 | ||
1228 | static void macb_get_drvinfo(struct net_device *dev, | ||
1229 | struct ethtool_drvinfo *info) | ||
1230 | { | ||
1231 | struct macb *bp = netdev_priv(dev); | ||
1232 | |||
1233 | strcpy(info->driver, bp->pdev->dev.driver->name); | ||
1234 | strcpy(info->version, "$Revision: 1.14 $"); | ||
1235 | strcpy(info->bus_info, dev_name(&bp->pdev->dev)); | ||
1236 | } | ||
1237 | |||
1238 | const struct ethtool_ops macb_ethtool_ops = { | 1228 | const struct ethtool_ops macb_ethtool_ops = { |
1239 | .get_settings = macb_get_settings, | 1229 | .get_settings = macb_get_settings, |
1240 | .set_settings = macb_set_settings, | 1230 | .set_settings = macb_set_settings, |
1241 | .get_drvinfo = macb_get_drvinfo, | ||
1242 | .get_link = ethtool_op_get_link, | 1231 | .get_link = ethtool_op_get_link, |
1243 | .get_ts_info = ethtool_op_get_ts_info, | 1232 | .get_ts_info = ethtool_op_get_ts_info, |
1244 | }; | 1233 | }; |