Commit 1c944a9c authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller

net/freescale: Don't set zero if FW not-available in dpaa

Rely on ethtool to properly present the fact that FW is not
available for the dpaa driver.
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ed0a72e0
...@@ -106,17 +106,8 @@ static int dpaa_set_link_ksettings(struct net_device *net_dev, ...@@ -106,17 +106,8 @@ static int dpaa_set_link_ksettings(struct net_device *net_dev,
static void dpaa_get_drvinfo(struct net_device *net_dev, static void dpaa_get_drvinfo(struct net_device *net_dev,
struct ethtool_drvinfo *drvinfo) struct ethtool_drvinfo *drvinfo)
{ {
int len;
strlcpy(drvinfo->driver, KBUILD_MODNAME, strlcpy(drvinfo->driver, KBUILD_MODNAME,
sizeof(drvinfo->driver)); sizeof(drvinfo->driver));
len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
"%X", 0);
if (len >= sizeof(drvinfo->fw_version)) {
/* Truncated output */
netdev_notice(net_dev, "snprintf() = %d\n", len);
}
strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent),
sizeof(drvinfo->bus_info)); sizeof(drvinfo->bus_info));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment