Commit 7558828a authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: dsa: remove version string

The dsa_driver_version string is irrelevant and has not been bumped
since its introduction about 9 years ago. Kill it.
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 026b471b
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include "dsa_priv.h" #include "dsa_priv.h"
char dsa_driver_version[] = "0.1";
static struct sk_buff *dsa_slave_notag_xmit(struct sk_buff *skb, static struct sk_buff *dsa_slave_notag_xmit(struct sk_buff *skb,
struct net_device *dev) struct net_device *dev)
{ {
...@@ -926,9 +924,6 @@ static int dsa_probe(struct platform_device *pdev) ...@@ -926,9 +924,6 @@ static int dsa_probe(struct platform_device *pdev)
struct dsa_switch_tree *dst; struct dsa_switch_tree *dst;
int ret; int ret;
pr_notice_once("Distributed Switch Architecture driver version %s\n",
dsa_driver_version);
if (pdev->dev.of_node) { if (pdev->dev.of_node) {
ret = dsa_of_probe(&pdev->dev); ret = dsa_of_probe(&pdev->dev);
if (ret) if (ret)
......
...@@ -49,7 +49,6 @@ struct dsa_slave_priv { ...@@ -49,7 +49,6 @@ struct dsa_slave_priv {
}; };
/* dsa.c */ /* dsa.c */
extern char dsa_driver_version[];
int dsa_cpu_dsa_setup(struct dsa_switch *ds, struct device *dev, int dsa_cpu_dsa_setup(struct dsa_switch *ds, struct device *dev,
struct device_node *port_dn, int port); struct device_node *port_dn, int port);
void dsa_cpu_dsa_destroy(struct device_node *port_dn); void dsa_cpu_dsa_destroy(struct device_node *port_dn);
......
...@@ -673,7 +673,6 @@ static void dsa_slave_get_drvinfo(struct net_device *dev, ...@@ -673,7 +673,6 @@ static void dsa_slave_get_drvinfo(struct net_device *dev,
struct ethtool_drvinfo *drvinfo) struct ethtool_drvinfo *drvinfo)
{ {
strlcpy(drvinfo->driver, "dsa", sizeof(drvinfo->driver)); 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->fw_version, "N/A", sizeof(drvinfo->fw_version));
strlcpy(drvinfo->bus_info, "platform", sizeof(drvinfo->bus_info)); strlcpy(drvinfo->bus_info, "platform", 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