net/cortina: Delete driver version from ethtool output
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Mar 2020 14:44:45 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:54:54 +0000 (17:54 -0800)
Use default ethtool version instead of static variant.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cortina/gemini.c

index f30fa8e6ef80b38fe3a5b24ae0e0674f783f6fb4..dc2a4adab793bcbe74aa9088cc936cefdd6b2301 100644 (file)
@@ -44,7 +44,6 @@
 #include "gemini.h"
 
 #define DRV_NAME               "gmac-gemini"
-#define DRV_VERSION            "1.0"
 
 #define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
 static int debug = -1;
@@ -2204,7 +2203,6 @@ static void gmac_get_drvinfo(struct net_device *netdev,
                             struct ethtool_drvinfo *info)
 {
        strcpy(info->driver,  DRV_NAME);
-       strcpy(info->version, DRV_VERSION);
        strcpy(info->bus_info, netdev->dev_id ? "1" : "0");
 }