Commit 3b2c8fc6 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller
Browse files

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b7ef81c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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),