net/arc: Delete driver version
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 24 Feb 2020 08:53:10 +0000 (10:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 19:24:47 +0000 (11:24 -0800)
Drop constant driver version in favour of global linux kernel.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/arc/emac.h
drivers/net/ethernet/arc/emac_arc.c
drivers/net/ethernet/arc/emac_main.c
drivers/net/ethernet/arc/emac_rockchip.c

index d9efbc8d783b84b128379e0ce58a43b005a8ab58..d820ae03a9660df1672ba6b51aa538cfd8265210 100644 (file)
@@ -130,7 +130,6 @@ struct arc_emac_mdio_bus_data {
  */
 struct arc_emac_priv {
        const char *drv_name;
-       const char *drv_version;
        void (*set_mac_speed)(void *priv, unsigned int speed);
 
        /* Devices */
index 5391661129931c938aa7b190e5714a1de8aa5db4..1c7736b7eaf718b0df6fe0ddb196f7ba40c3f776 100644 (file)
@@ -15,7 +15,6 @@
 #include "emac.h"
 
 #define DRV_NAME    "emac_arc"
-#define DRV_VERSION "1.0"
 
 static int emac_arc_probe(struct platform_device *pdev)
 {
@@ -36,7 +35,6 @@ static int emac_arc_probe(struct platform_device *pdev)
 
        priv = netdev_priv(ndev);
        priv->drv_name = DRV_NAME;
-       priv->drv_version = DRV_VERSION;
 
        err = of_get_phy_mode(dev->of_node, &interface);
        if (err) {
index 17bda4e8cc45a4c4f3b95bab4b4aabd8e6365bbc..38cd968b6a3bac044c441b2636ef34abd2a47125 100644 (file)
@@ -92,7 +92,6 @@ static void arc_emac_get_drvinfo(struct net_device *ndev,
        struct arc_emac_priv *priv = netdev_priv(ndev);
 
        strlcpy(info->driver, priv->drv_name, sizeof(info->driver));
-       strlcpy(info->version, priv->drv_version, sizeof(info->version));
 }
 
 static const struct ethtool_ops arc_emac_ethtool_ops = {
index aae231c5224fe8d99e5a11e14da4c6310f6a7fe6..48ecdf15eddc587d118e62f36f8ce360dbf82b3f 100644 (file)
@@ -16,7 +16,6 @@
 #include "emac.h"
 
 #define DRV_NAME        "rockchip_emac"
-#define DRV_VERSION     "1.1"
 
 struct emac_rockchip_soc_data {
        unsigned int grf_offset;
@@ -112,7 +111,6 @@ static int emac_rockchip_probe(struct platform_device *pdev)
 
        priv = netdev_priv(ndev);
        priv->emac.drv_name = DRV_NAME;
-       priv->emac.drv_version = DRV_VERSION;
        priv->emac.set_mac_speed = emac_rockchip_set_mac_speed;
 
        err = of_get_phy_mode(dev->of_node, &interface);