net: dsa: remove version string
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 5 Jan 2017 17:28:41 +0000 (12:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Jan 2017 20:49:10 +0000 (15:49 -0500)
The dsa_driver_version string is irrelevant and has not been bumped
since its introduction about 9 years ago. Kill it.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/dsa_priv.h
net/dsa/slave.c

index 89e66b623d73b45e86bae8164dff1db885e7c7f3..3f85be0aae34073e8a6a4ad0acf97f7bf00d713d 100644 (file)
@@ -27,8 +27,6 @@
 #include <linux/gpio/consumer.h>
 #include "dsa_priv.h"
 
-char dsa_driver_version[] = "0.1";
-
 static struct sk_buff *dsa_slave_notag_xmit(struct sk_buff *skb,
                                            struct net_device *dev)
 {
@@ -926,9 +924,6 @@ static int dsa_probe(struct platform_device *pdev)
        struct dsa_switch_tree *dst;
        int ret;
 
-       pr_notice_once("Distributed Switch Architecture driver version %s\n",
-                      dsa_driver_version);
-
        if (pdev->dev.of_node) {
                ret = dsa_of_probe(&pdev->dev);
                if (ret)
index 6cfd7388834e3a118e81ece3779f56023bfca488..63ae1484abae4c221f4c1f7b946c5bed65ccdb7b 100644 (file)
@@ -49,7 +49,6 @@ struct dsa_slave_priv {
 };
 
 /* dsa.c */
-extern char dsa_driver_version[];
 int dsa_cpu_dsa_setup(struct dsa_switch *ds, struct device *dev,
                      struct device_node *port_dn, int port);
 void dsa_cpu_dsa_destroy(struct device_node *port_dn);
index ffd91969b83097f57076d37f140518cedb298ffb..5cd5b8137c08ee274e46afb7eb6befa4716c3541 100644 (file)
@@ -673,7 +673,6 @@ static void dsa_slave_get_drvinfo(struct net_device *dev,
                                  struct ethtool_drvinfo *drvinfo)
 {
        strlcpy(drvinfo->driver, "dsa", sizeof(drvinfo->driver));
-       strlcpy(drvinfo->version, dsa_driver_version, sizeof(drvinfo->version));
        strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
        strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info));
 }