mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 16:25:34 +00:00
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>
This commit is contained in:
parent
2b7ef81c04
commit
3b2c8fc604
1 changed files with 2 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue