Commit ed0a72e0 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller

net/freescale: Clean drivers from static versions

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39dc02da
...@@ -110,8 +110,6 @@ static void dpaa_get_drvinfo(struct net_device *net_dev, ...@@ -110,8 +110,6 @@ static void dpaa_get_drvinfo(struct net_device *net_dev,
strlcpy(drvinfo->driver, KBUILD_MODNAME, strlcpy(drvinfo->driver, KBUILD_MODNAME,
sizeof(drvinfo->driver)); sizeof(drvinfo->driver));
len = snprintf(drvinfo->version, sizeof(drvinfo->version),
"%X", 0);
len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
"%X", 0); "%X", 0);
......
...@@ -7,12 +7,6 @@ ...@@ -7,12 +7,6 @@
#include <linux/of_net.h> #include <linux/of_net.h>
#include "enetc_pf.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" #define ENETC_DRV_NAME_STR "ENETC PF driver"
static const char enetc_drv_name[] = ENETC_DRV_NAME_STR; static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
...@@ -929,9 +923,6 @@ static int enetc_pf_probe(struct pci_dev *pdev, ...@@ -929,9 +923,6 @@ static int enetc_pf_probe(struct pci_dev *pdev,
netif_carrier_off(ndev); netif_carrier_off(ndev);
netif_info(priv, probe, ndev, "%s v%s\n",
enetc_drv_name, enetc_drv_ver);
return 0; return 0;
err_reg_netdev: err_reg_netdev:
...@@ -959,9 +950,6 @@ static void enetc_pf_remove(struct pci_dev *pdev) ...@@ -959,9 +950,6 @@ static void enetc_pf_remove(struct pci_dev *pdev)
enetc_sriov_configure(pdev, 0); enetc_sriov_configure(pdev, 0);
priv = netdev_priv(si->ndev); 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); unregister_netdev(si->ndev);
enetc_mdio_remove(pf); enetc_mdio_remove(pf);
...@@ -995,4 +983,3 @@ module_pci_driver(enetc_pf_driver); ...@@ -995,4 +983,3 @@ module_pci_driver(enetc_pf_driver);
MODULE_DESCRIPTION(ENETC_DRV_NAME_STR); MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_VERSION(ENETC_DRV_VER_STR);
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
#include <linux/module.h> #include <linux/module.h>
#include "enetc.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" #define ENETC_DRV_NAME_STR "ENETC VF driver"
static const char enetc_drv_name[] = ENETC_DRV_NAME_STR; static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
...@@ -201,9 +195,6 @@ static int enetc_vf_probe(struct pci_dev *pdev, ...@@ -201,9 +195,6 @@ static int enetc_vf_probe(struct pci_dev *pdev,
netif_carrier_off(ndev); netif_carrier_off(ndev);
netif_info(priv, probe, ndev, "%s v%s\n",
enetc_drv_name, enetc_drv_ver);
return 0; return 0;
err_reg_netdev: err_reg_netdev:
...@@ -225,8 +216,6 @@ static void enetc_vf_remove(struct pci_dev *pdev) ...@@ -225,8 +216,6 @@ static void enetc_vf_remove(struct pci_dev *pdev)
struct enetc_ndev_priv *priv; struct enetc_ndev_priv *priv;
priv = netdev_priv(si->ndev); 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); unregister_netdev(si->ndev);
enetc_free_msix(priv); enetc_free_msix(priv);
...@@ -254,4 +243,3 @@ module_pci_driver(enetc_vf_driver); ...@@ -254,4 +243,3 @@ module_pci_driver(enetc_vf_driver);
MODULE_DESCRIPTION(ENETC_DRV_NAME_STR); MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_VERSION(ENETC_DRV_VER_STR);
...@@ -2128,7 +2128,6 @@ static void fec_enet_get_drvinfo(struct net_device *ndev, ...@@ -2128,7 +2128,6 @@ static void fec_enet_get_drvinfo(struct net_device *ndev,
strlcpy(info->driver, fep->pdev->dev.driver->name, strlcpy(info->driver, fep->pdev->dev.driver->name,
sizeof(info->driver)); sizeof(info->driver));
strlcpy(info->version, "Revision: 1.0", sizeof(info->version));
strlcpy(info->bus_info, dev_name(&ndev->dev), sizeof(info->bus_info)); strlcpy(info->bus_info, dev_name(&ndev->dev), sizeof(info->bus_info));
} }
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
MODULE_AUTHOR("Pantelis Antoniou <panto@intracom.gr>"); MODULE_AUTHOR("Pantelis Antoniou <panto@intracom.gr>");
MODULE_DESCRIPTION("Freescale Ethernet Driver"); MODULE_DESCRIPTION("Freescale Ethernet Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_MODULE_VERSION);
static int fs_enet_debug = -1; /* -1 == use FS_ENET_DEF_MSG_ENABLE as value */ static int fs_enet_debug = -1; /* -1 == use FS_ENET_DEF_MSG_ENABLE as value */
module_param(fs_enet_debug, int, 0); module_param(fs_enet_debug, int, 0);
...@@ -790,7 +789,6 @@ static void fs_get_drvinfo(struct net_device *dev, ...@@ -790,7 +789,6 @@ static void fs_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *info) struct ethtool_drvinfo *info)
{ {
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver)); 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) static int fs_get_regs_len(struct net_device *dev)
......
...@@ -190,8 +190,6 @@ void fs_cleanup_bds(struct net_device *dev); ...@@ -190,8 +190,6 @@ void fs_cleanup_bds(struct net_device *dev);
#define DRV_MODULE_NAME "fs_enet" #define DRV_MODULE_NAME "fs_enet"
#define PFX DRV_MODULE_NAME ": " #define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "1.1"
#define DRV_MODULE_RELDATE "Sep 22, 2014"
/***************************************************************************/ /***************************************************************************/
......
...@@ -103,8 +103,6 @@ ...@@ -103,8 +103,6 @@
#define TX_TIMEOUT (5*HZ) #define TX_TIMEOUT (5*HZ)
const char gfar_driver_version[] = "2.0";
MODULE_AUTHOR("Freescale Semiconductor, Inc"); MODULE_AUTHOR("Freescale Semiconductor, Inc");
MODULE_DESCRIPTION("Gianfar Ethernet Driver"); MODULE_DESCRIPTION("Gianfar Ethernet Driver");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
......
...@@ -68,7 +68,6 @@ struct ethtool_rx_list { ...@@ -68,7 +68,6 @@ struct ethtool_rx_list {
#define RXBUF_ALIGNMENT 64 #define RXBUF_ALIGNMENT 64
#define DRV_NAME "gfar-enet" #define DRV_NAME "gfar-enet"
extern const char gfar_driver_version[];
/* MAXIMUM NUMBER OF QUEUES SUPPORTED */ /* MAXIMUM NUMBER OF QUEUES SUPPORTED */
#define MAX_TX_QS 0x8 #define MAX_TX_QS 0x8
......
...@@ -164,8 +164,6 @@ static void gfar_gdrvinfo(struct net_device *dev, ...@@ -164,8 +164,6 @@ static void gfar_gdrvinfo(struct net_device *dev,
struct ethtool_drvinfo *drvinfo) struct ethtool_drvinfo *drvinfo)
{ {
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); 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->fw_version, "N/A", sizeof(drvinfo->fw_version));
strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info)); strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info));
} }
......
...@@ -3990,5 +3990,4 @@ module_exit(ucc_geth_exit); ...@@ -3990,5 +3990,4 @@ module_exit(ucc_geth_exit);
MODULE_AUTHOR("Freescale Semiconductor, Inc"); MODULE_AUTHOR("Freescale Semiconductor, Inc");
MODULE_DESCRIPTION(DRV_DESC); MODULE_DESCRIPTION(DRV_DESC);
MODULE_VERSION(DRV_VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
#define DRV_DESC "QE UCC Gigabit Ethernet Controller" #define DRV_DESC "QE UCC Gigabit Ethernet Controller"
#define DRV_NAME "ucc_geth" #define DRV_NAME "ucc_geth"
#define DRV_VERSION "1.1"
#define NUM_TX_QUEUES 8 #define NUM_TX_QUEUES 8
#define NUM_RX_QUEUES 8 #define NUM_RX_QUEUES 8
......
...@@ -334,7 +334,6 @@ uec_get_drvinfo(struct net_device *netdev, ...@@ -334,7 +334,6 @@ uec_get_drvinfo(struct net_device *netdev,
struct ethtool_drvinfo *drvinfo) struct ethtool_drvinfo *drvinfo)
{ {
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver)); 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->fw_version, "N/A", sizeof(drvinfo->fw_version));
strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info)); strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment