net/brocade: Delete driver version
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Mar 2020 14:44:36 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:54:53 +0000 (17:54 -0800)
Remove driver and module version in favor of default one.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad.c
drivers/net/ethernet/brocade/bna/bnad.h
drivers/net/ethernet/brocade/bna/bnad_ethtool.c

index d6588502a050af749d051998609bb9ece1dad089..cc80bbbefe8701ad3cb1ff0f6b4e34de60feb3b5 100644 (file)
@@ -3842,9 +3842,6 @@ bnad_module_init(void)
 {
        int err;
 
-       pr_info("bna: QLogic BR-series 10G Ethernet driver - version: %s\n",
-               BNAD_VERSION);
-
        bfa_nw_ioc_auto_recover(bnad_ioc_auto_recover);
 
        err = pci_register_driver(&bnad_pci_driver);
@@ -3869,6 +3866,5 @@ module_exit(bnad_module_exit);
 MODULE_AUTHOR("Brocade");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("QLogic BR-series 10G PCIe Ethernet driver");
-MODULE_VERSION(BNAD_VERSION);
 MODULE_FIRMWARE(CNA_FW_FILE_CT);
 MODULE_FIRMWARE(CNA_FW_FILE_CT2);
index bfa58b40dc3ff7ef6f44b47adc70a81ff0748a10..627a93ce38ab07dd36114ff84f0fe893cec90f2b 100644 (file)
@@ -64,8 +64,6 @@ struct bnad_rx_ctrl {
 #define BNAD_NAME                      "bna"
 #define BNAD_NAME_LEN                  64
 
-#define BNAD_VERSION                   "3.2.25.1"
-
 #define BNAD_MAILBOX_MSIX_INDEX                0
 #define BNAD_MAILBOX_MSIX_VECTORS      1
 #define BNAD_INTX_TX_IB_BITMASK                0x1
index b764c9ff9ad1788c8dd86517ce5a6e693ea95ed5..505e9c6d74a6748b8bf61318f76e7d3cc5f3ba21 100644 (file)
@@ -284,7 +284,6 @@ bnad_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
        unsigned long flags;
 
        strlcpy(drvinfo->driver, BNAD_NAME, sizeof(drvinfo->driver));
-       strlcpy(drvinfo->version, BNAD_VERSION, sizeof(drvinfo->version));
 
        ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
        if (ioc_attr) {