Skip to content

Commit 83cdbc7

Browse files
Nicolas Ferredavem330
authored andcommitted
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>
1 parent a268adb commit 83cdbc7

File tree

1 file changed

+0
-11
lines changed
  • drivers/net/ethernet/cadence

1 file changed

+0
-11
lines changed

drivers/net/ethernet/cadence/macb.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,20 +1225,9 @@ static int macb_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
12251225
return phy_ethtool_sset(phydev, cmd);
12261226
}
12271227

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-
12381228
const struct ethtool_ops macb_ethtool_ops = {
12391229
.get_settings = macb_get_settings,
12401230
.set_settings = macb_set_settings,
1241-
.get_drvinfo = macb_get_drvinfo,
12421231
.get_link = ethtool_op_get_link,
12431232
.get_ts_info = ethtool_op_get_ts_info,
12441233
};

0 commit comments

Comments
 (0)