net/liquidio: Delete driver version assignment
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 1 Mar 2020 14:44:37 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:54:54 +0000 (17:54 -0800)
Drop driver version in favor of global to linux kernel version.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c
drivers/net/ethernet/cavium/liquidio/liquidio_common.h

index abe5d0dac8510b984692b70c6e4f5307c105335e..2b27e3aad9db667503416e17d15657c7bbc5e127 100644 (file)
@@ -442,7 +442,6 @@ lio_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 
        memset(drvinfo, 0, sizeof(struct ethtool_drvinfo));
        strcpy(drvinfo->driver, "liquidio");
-       strcpy(drvinfo->version, LIQUIDIO_VERSION);
        strncpy(drvinfo->fw_version, oct->fw_info.liquidio_firmware_version,
                ETHTOOL_FWVERS_LEN);
        strncpy(drvinfo->bus_info, pci_name(oct->pci_dev), 32);
@@ -459,7 +458,6 @@ lio_get_vf_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
 
        memset(drvinfo, 0, sizeof(struct ethtool_drvinfo));
        strcpy(drvinfo->driver, "liquidio_vf");
-       strcpy(drvinfo->version, LIQUIDIO_VERSION);
        strncpy(drvinfo->fw_version, oct->fw_info.liquidio_firmware_version,
                ETHTOOL_FWVERS_LEN);
        strncpy(drvinfo->bus_info, pci_name(oct->pci_dev), 32);
index eab05b5534ea09586a27acc46616cc785cc1df46..a8d9ec927627647435109f4f88cef20f2364bc8e 100644 (file)
@@ -39,7 +39,6 @@
 MODULE_AUTHOR("Cavium Networks, <support@cavium.com>");
 MODULE_DESCRIPTION("Cavium LiquidIO Intelligent Server Adapter Driver");
 MODULE_LICENSE("GPL");
-MODULE_VERSION(LIQUIDIO_VERSION);
 MODULE_FIRMWARE(LIO_FW_DIR LIO_FW_BASE_NAME LIO_210SV_NAME
                "_" LIO_FW_NAME_TYPE_NIC LIO_FW_NAME_SUFFIX);
 MODULE_FIRMWARE(LIO_FW_DIR LIO_FW_BASE_NAME LIO_210NV_NAME
@@ -1414,13 +1413,6 @@ static int octeon_chip_specific_setup(struct octeon_device *oct)
                        dev_id);
        }
 
-       if (!ret)
-               dev_info(&oct->pci_dev->dev, "%s PASS%d.%d %s Version: %s\n", s,
-                        OCTEON_MAJOR_REV(oct),
-                        OCTEON_MINOR_REV(oct),
-                        octeon_get_conf(oct)->card_name,
-                        LIQUIDIO_VERSION);
-
        return ret;
 }
 
index 7a77544a54f5b2564864840ed4a9b5f5deeae966..bbd9bfa4a989b48a8c06ef6309740408027d5ff4 100644 (file)
@@ -32,7 +32,6 @@
 MODULE_AUTHOR("Cavium Networks, <support@cavium.com>");
 MODULE_DESCRIPTION("Cavium LiquidIO Intelligent Server Adapter Virtual Function Driver");
 MODULE_LICENSE("GPL");
-MODULE_VERSION(LIQUIDIO_VERSION);
 
 static int debug = -1;
 module_param(debug, int, 0644);
@@ -2352,8 +2351,8 @@ static int octeon_device_init(struct octeon_device *oct)
        }
        atomic_set(&oct->status, OCT_DEV_MSIX_ALLOC_VECTOR_DONE);
 
-       dev_info(&oct->pci_dev->dev, "OCTEON_CN23XX VF Version: %s, %d ioqs\n",
-                LIQUIDIO_VERSION, oct->sriov_info.rings_per_vf);
+       dev_info(&oct->pci_dev->dev, "OCTEON_CN23XX VF: %d ioqs\n",
+                oct->sriov_info.rings_per_vf);
 
        /* Setup the interrupt handler and record the INT SUM register address*/
        if (octeon_setup_interrupt(oct, oct->sriov_info.rings_per_vf))
index a5e0e9f179590232472378c24d41331d99dcd59a..2d61790c2e51ca15a864a2c6ba0231dec2a4486a 100644 (file)
 #define LIQUIDIO_BASE_MICRO_VERSION 2
 #define LIQUIDIO_BASE_VERSION   __stringify(LIQUIDIO_BASE_MAJOR_VERSION) "." \
                                __stringify(LIQUIDIO_BASE_MINOR_VERSION)
-#define LIQUIDIO_MICRO_VERSION  "." __stringify(LIQUIDIO_BASE_MICRO_VERSION)
-#define LIQUIDIO_VERSION        LIQUIDIO_PACKAGE \
-                               __stringify(LIQUIDIO_BASE_MAJOR_VERSION) "." \
-                               __stringify(LIQUIDIO_BASE_MINOR_VERSION) \
-                               "." __stringify(LIQUIDIO_BASE_MICRO_VERSION)
 
 struct lio_version {
        u16  major;