diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2020-02-24 11:53:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-24 22:23:37 +0300 |
commit | 3b2c8fc604ab5a3641128e08c1198d0b20c922d8 (patch) | |
tree | 0a40762325cfdfc0e159d2cacbb5e418081af4ca /drivers/net/ethernet/alteon | |
parent | 2b7ef81c04fb811bf715e9c126cb42365beb5dfc (diff) | |
download | linux-3b2c8fc604ab5a3641128e08c1198d0b20c922d8.tar.xz |
net/alteon: Properly report FW version
The acenic driver assigns FW version in driver version field,
as part of cleanup driver version, set FW version properly.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/alteon')
-rw-r--r-- | drivers/net/ethernet/alteon/acenic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/alteon/acenic.c b/drivers/net/ethernet/alteon/acenic.c index f366faf88eee..5d192d551623 100644 --- a/drivers/net/ethernet/alteon/acenic.c +++ b/drivers/net/ethernet/alteon/acenic.c @@ -2699,9 +2699,8 @@ static void ace_get_drvinfo(struct net_device *dev, struct ace_private *ap = netdev_priv(dev); strlcpy(info->driver, "acenic", sizeof(info->driver)); - snprintf(info->version, sizeof(info->version), "%i.%i.%i", - ap->firmware_major, ap->firmware_minor, - ap->firmware_fix); + snprintf(info->fw_version, sizeof(info->version), "%i.%i.%i", + ap->firmware_major, ap->firmware_minor, ap->firmware_fix); if (ap->pdev) strlcpy(info->bus_info, pci_name(ap->pdev), |