]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net/althera: Delete hardcoded driver version
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 24 Feb 2020 08:53:04 +0000 (10:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:23:37 +0000 (11:23 -0800)
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>
drivers/net/ethernet/altera/altera_tse_ethtool.c

index 23823464f2e7eb015af6bda56f39bf714dc5998c..4299f130114998632f68e39f291a4047b5f82904 100644 (file)
@@ -67,7 +67,6 @@ static void tse_get_drvinfo(struct net_device *dev,
        u32 rev = ioread32(&priv->mac_dev->megacore_revision);
 
        strcpy(info->driver, "altera_tse");
-       strcpy(info->version, "v8.0");
        snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "v%d.%d",
                 rev & 0xFFFF, (rev & 0xFFFF0000) >> 16);
        sprintf(info->bus_info, "platform");