net/broadcom: Clean broadcom code from driver versions
Use linux kernel version for ethtool and module versions. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
e762ae5d05
commit
e3c0a63510
@@ -22,7 +22,6 @@
|
||||
#include "bcm63xx_enet.h"
|
||||
|
||||
static char bcm_enet_driver_name[] = "bcm63xx_enet";
|
||||
static char bcm_enet_driver_version[] = "1.0";
|
||||
|
||||
static int copybreak __read_mostly = 128;
|
||||
module_param(copybreak, int, 0);
|
||||
@@ -1304,8 +1303,6 @@ static void bcm_enet_get_drvinfo(struct net_device *netdev,
|
||||
struct ethtool_drvinfo *drvinfo)
|
||||
{
|
||||
strlcpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, bcm_enet_driver_version,
|
||||
sizeof(drvinfo->version));
|
||||
strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
|
||||
strlcpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
|
||||
}
|
||||
@@ -2529,10 +2526,9 @@ static int bcm_enetsw_get_sset_count(struct net_device *netdev,
|
||||
static void bcm_enetsw_get_drvinfo(struct net_device *netdev,
|
||||
struct ethtool_drvinfo *drvinfo)
|
||||
{
|
||||
strncpy(drvinfo->driver, bcm_enet_driver_name, 32);
|
||||
strncpy(drvinfo->version, bcm_enet_driver_version, 32);
|
||||
strncpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
|
||||
strncpy(drvinfo->fw_version, "N/A", 32);
|
||||
strncpy(drvinfo->bus_info, "bcm63xx", 32);
|
||||
strncpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
||||
static void bcm_enetsw_get_ethtool_stats(struct net_device *netdev,
|
||||
|
Reference in New Issue
Block a user