net/freescale: Clean drivers from static versions
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Mar 2020 14:44:53 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:54:55 +0000 (17:54 -0800)
There is no need to set static versions because linux kernel is
released all together with same version applicable to the whole
code base.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 files changed:
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
drivers/net/ethernet/freescale/enetc/enetc_pf.c
drivers/net/ethernet/freescale/enetc/enetc_vf.c
drivers/net/ethernet/freescale/fec_main.c
drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c
drivers/net/ethernet/freescale/fs_enet/fs_enet.h
drivers/net/ethernet/freescale/gianfar.c
drivers/net/ethernet/freescale/gianfar.h
drivers/net/ethernet/freescale/gianfar_ethtool.c
drivers/net/ethernet/freescale/ucc_geth.c
drivers/net/ethernet/freescale/ucc_geth.h
drivers/net/ethernet/freescale/ucc_geth_ethtool.c

index 66d150872d48d623c82f0ef4b48a133074e07161..13ab669ca8b36d63d5b02b4438b7106930e352ac 100644 (file)
@@ -110,8 +110,6 @@ static void dpaa_get_drvinfo(struct net_device *net_dev,
 
        strlcpy(drvinfo->driver, KBUILD_MODNAME,
                sizeof(drvinfo->driver));
-       len = snprintf(drvinfo->version, sizeof(drvinfo->version),
-                      "%X", 0);
        len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
                       "%X", 0);
 
index fc0d7d99e9a18d26dbd19b5845c629ac40320a29..545a344bce00ee1cfd578b8cf430aa3a5a045abb 100644 (file)
@@ -7,12 +7,6 @@
 #include <linux/of_net.h>
 #include "enetc_pf.h"
 
-#define ENETC_DRV_VER_MAJ 1
-#define ENETC_DRV_VER_MIN 0
-
-#define ENETC_DRV_VER_STR __stringify(ENETC_DRV_VER_MAJ) "." \
-                         __stringify(ENETC_DRV_VER_MIN)
-static const char enetc_drv_ver[] = ENETC_DRV_VER_STR;
 #define ENETC_DRV_NAME_STR "ENETC PF driver"
 static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
 
@@ -929,9 +923,6 @@ static int enetc_pf_probe(struct pci_dev *pdev,
 
        netif_carrier_off(ndev);
 
-       netif_info(priv, probe, ndev, "%s v%s\n",
-                  enetc_drv_name, enetc_drv_ver);
-
        return 0;
 
 err_reg_netdev:
@@ -959,9 +950,6 @@ static void enetc_pf_remove(struct pci_dev *pdev)
                enetc_sriov_configure(pdev, 0);
 
        priv = netdev_priv(si->ndev);
-       netif_info(priv, drv, si->ndev, "%s v%s remove\n",
-                  enetc_drv_name, enetc_drv_ver);
-
        unregister_netdev(si->ndev);
 
        enetc_mdio_remove(pf);
@@ -995,4 +983,3 @@ module_pci_driver(enetc_pf_driver);
 
 MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
 MODULE_LICENSE("Dual BSD/GPL");
-MODULE_VERSION(ENETC_DRV_VER_STR);
index ebd21bf4cfa1e7cfa8fe03c9f838b4b790439d2c..28a786b2f3e7ff346c388f5610b9735de22979be 100644 (file)
@@ -4,12 +4,6 @@
 #include <linux/module.h>
 #include "enetc.h"
 
-#define ENETC_DRV_VER_MAJ 1
-#define ENETC_DRV_VER_MIN 0
-
-#define ENETC_DRV_VER_STR __stringify(ENETC_DRV_VER_MAJ) "." \
-                         __stringify(ENETC_DRV_VER_MIN)
-static const char enetc_drv_ver[] = ENETC_DRV_VER_STR;
 #define ENETC_DRV_NAME_STR "ENETC VF driver"
 static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
 
@@ -201,9 +195,6 @@ static int enetc_vf_probe(struct pci_dev *pdev,
 
        netif_carrier_off(ndev);
 
-       netif_info(priv, probe, ndev, "%s v%s\n",
-                  enetc_drv_name, enetc_drv_ver);
-
        return 0;
 
 err_reg_netdev:
@@ -225,8 +216,6 @@ static void enetc_vf_remove(struct pci_dev *pdev)
        struct enetc_ndev_priv *priv;
 
        priv = netdev_priv(si->ndev);
-       netif_info(priv, drv, si->ndev, "%s v%s remove\n",
-                  enetc_drv_name, enetc_drv_ver);
        unregister_netdev(si->ndev);
 
        enetc_free_msix(priv);
@@ -254,4 +243,3 @@ module_pci_driver(enetc_vf_driver);
 
 MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
 MODULE_LICENSE("Dual BSD/GPL");
-MODULE_VERSION(ENETC_DRV_VER_STR);
index 12edd4e358f89d239231a95ead445e01368f84b3..af7653e341f2e22e6c349cec428fb18c02f8907f 100644 (file)
@@ -2128,7 +2128,6 @@ static void fec_enet_get_drvinfo(struct net_device *ndev,
 
        strlcpy(info->driver, fep->pdev->dev.driver->name,
                sizeof(info->driver));
-       strlcpy(info->version, "Revision: 1.0", sizeof(info->version));
        strlcpy(info->bus_info, dev_name(&ndev->dev), sizeof(info->bus_info));
 }
 
index add61fed33ee8ae0d206849676b4ad87e2b85c16..ce85feaac357af01a0f0b3f06b7df02944f53c3d 100644 (file)
@@ -53,7 +53,6 @@
 MODULE_AUTHOR("Pantelis Antoniou <panto@intracom.gr>");
 MODULE_DESCRIPTION("Freescale Ethernet Driver");
 MODULE_LICENSE("GPL");
-MODULE_VERSION(DRV_MODULE_VERSION);
 
 static int fs_enet_debug = -1; /* -1 == use FS_ENET_DEF_MSG_ENABLE as value */
 module_param(fs_enet_debug, int, 0);
@@ -790,7 +789,6 @@ static void fs_get_drvinfo(struct net_device *dev,
                            struct ethtool_drvinfo *info)
 {
        strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
-       strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
 }
 
 static int fs_get_regs_len(struct net_device *dev)
index 195fae6aec4ae71bbdcd77114c1e86148c43c061..5ff2634bee2f31d60fb86a544ad5c13b5112125f 100644 (file)
@@ -190,8 +190,6 @@ void fs_cleanup_bds(struct net_device *dev);
 
 #define DRV_MODULE_NAME                "fs_enet"
 #define PFX DRV_MODULE_NAME    ": "
-#define DRV_MODULE_VERSION     "1.1"
-#define DRV_MODULE_RELDATE     "Sep 22, 2014"
 
 /***************************************************************************/
 
index f7e5cafe89a9360249077b7128994b55c134f4ff..b3c69e9038eac4bab916c0d1a4839cacc2eb6f4f 100644 (file)
 
 #define TX_TIMEOUT      (5*HZ)
 
-const char gfar_driver_version[] = "2.0";
-
 MODULE_AUTHOR("Freescale Semiconductor, Inc");
 MODULE_DESCRIPTION("Gianfar Ethernet Driver");
 MODULE_LICENSE("GPL");
index 432c6a818ae5579a60d72c51fcec956964d07cc6..8ced783f53024f31b1b927395bcd0e715239d40d 100644 (file)
@@ -68,7 +68,6 @@ struct ethtool_rx_list {
 #define RXBUF_ALIGNMENT 64
 
 #define DRV_NAME "gfar-enet"
-extern const char gfar_driver_version[];
 
 /* MAXIMUM NUMBER OF QUEUES SUPPORTED */
 #define MAX_TX_QS      0x8
index 3c8e4e2efc070f9a6276026100cdb82d2b1ea159..7b69e80d6b3084c013222fe9ddefaecaaaef72eb 100644 (file)
@@ -164,8 +164,6 @@ static void gfar_gdrvinfo(struct net_device *dev,
                          struct ethtool_drvinfo *drvinfo)
 {
        strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
-       strlcpy(drvinfo->version, gfar_driver_version,
-               sizeof(drvinfo->version));
        strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
        strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info));
 }
index 0d101c00286fb07600f2e7e3a19e72bf5e44d39b..6e5f6dd169b5c580ca48fbb128f0505499c61073 100644 (file)
@@ -3990,5 +3990,4 @@ module_exit(ucc_geth_exit);
 
 MODULE_AUTHOR("Freescale Semiconductor, Inc");
 MODULE_DESCRIPTION(DRV_DESC);
-MODULE_VERSION(DRV_VERSION);
 MODULE_LICENSE("GPL");
index a86a42131fc71b1654d323346cbb1bd2af6cad41..3fe90397219527b537061762e127b2e8e3f05371 100644 (file)
@@ -26,7 +26,6 @@
 
 #define DRV_DESC "QE UCC Gigabit Ethernet Controller"
 #define DRV_NAME "ucc_geth"
-#define DRV_VERSION "1.1"
 
 #define NUM_TX_QUEUES                   8
 #define NUM_RX_QUEUES                   8
index dfebacf443fc3006e58677308a4a10d46dcc61a7..bc7ba70d176cc279c713810a36ea11a46905e135 100644 (file)
@@ -334,7 +334,6 @@ uec_get_drvinfo(struct net_device *netdev,
                        struct ethtool_drvinfo *drvinfo)
 {
        strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
-       strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
        strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
        strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info));
 }