Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/althera: Delete hardcoded driver version

Convert to use default version provided by ethtool.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Leon Romanovsky and committed by
David S. Miller
f724dfc5 3b2c8fc6

-1
-1
drivers/net/ethernet/altera/altera_tse_ethtool.c
··· 67 67 u32 rev = ioread32(&priv->mac_dev->megacore_revision); 68 68 69 69 strcpy(info->driver, "altera_tse"); 70 - strcpy(info->version, "v8.0"); 71 70 snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "v%d.%d", 72 71 rev & 0xFFFF, (rev & 0xFFFF0000) >> 16); 73 72 sprintf(info->bus_info, "platform");