mirror of https://gitee.com/openkylin/linux.git
Merge branch 'net-module-and-fw-vers'
Leon Romanovsky says:
====================
Clean driver, module and FW versions
This is second batch of the series which removes various static versions
in favour of globaly defined Linux kernel version.
The first part with better cover letter can be found here
https://lore.kernel.org/lkml/20200224085311.460338-1-leon@kernel.org
The code is based on
68e2c37690
("Merge branch 'hsr-several-code-cleanup-for-hsr-module'")
and WIP branch is
https://git.kernel.org/pub/scm/linux/kernel/git/leon/linux-rdma.git/log/?h=ethtool
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
d658489225
|
@ -40,7 +40,6 @@
|
|||
#include "b44.h"
|
||||
|
||||
#define DRV_MODULE_NAME "b44"
|
||||
#define DRV_MODULE_VERSION "2.0"
|
||||
#define DRV_DESCRIPTION "Broadcom 44xx/47xx 10/100 PCI ethernet driver"
|
||||
|
||||
#define B44_DEF_MSG_ENABLE \
|
||||
|
@ -97,7 +96,6 @@
|
|||
MODULE_AUTHOR("Felix Fietkau, Florian Schirmer, Pekka Pietikainen, David S. Miller");
|
||||
MODULE_DESCRIPTION(DRV_DESCRIPTION);
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
|
||||
static int b44_debug = -1; /* -1 == use B44_DEF_MSG_ENABLE as value */
|
||||
module_param(b44_debug, int, 0);
|
||||
|
@ -1791,7 +1789,6 @@ static void b44_get_drvinfo (struct net_device *dev, struct ethtool_drvinfo *inf
|
|||
struct ssb_bus *bus = bp->sdev->bus;
|
||||
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
switch (bus->bustype) {
|
||||
case SSB_BUSTYPE_PCI:
|
||||
strlcpy(info->bus_info, pci_name(bus->host_pci), sizeof(info->bus_info));
|
||||
|
@ -2347,8 +2344,6 @@ static int b44_init_one(struct ssb_device *sdev,
|
|||
|
||||
instance++;
|
||||
|
||||
pr_info_once("%s version %s\n", DRV_DESCRIPTION, DRV_MODULE_VERSION);
|
||||
|
||||
dev = alloc_etherdev(sizeof(*bp));
|
||||
if (!dev) {
|
||||
err = -ENOMEM;
|
||||
|
|
|
@ -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,9 +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 +2525,8 @@ 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->fw_version, "N/A", 32);
|
||||
strncpy(drvinfo->bus_info, "bcm63xx", 32);
|
||||
strncpy(drvinfo->driver, bcm_enet_driver_name, sizeof(drvinfo->driver));
|
||||
strncpy(drvinfo->bus_info, "bcm63xx", sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
||||
static void bcm_enetsw_get_ethtool_stats(struct net_device *netdev,
|
||||
|
|
|
@ -287,7 +287,6 @@ static void bcm_sysport_get_drvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
|
||||
strlcpy(info->version, "0.1", sizeof(info->version));
|
||||
strlcpy(info->bus_info, "platform", sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -59,8 +59,6 @@
|
|||
#include "bnx2_fw.h"
|
||||
|
||||
#define DRV_MODULE_NAME "bnx2"
|
||||
#define DRV_MODULE_VERSION "2.2.6"
|
||||
#define DRV_MODULE_RELDATE "January 29, 2014"
|
||||
#define FW_MIPS_FILE_06 "bnx2/bnx2-mips-06-6.2.3.fw"
|
||||
#define FW_RV2P_FILE_06 "bnx2/bnx2-rv2p-06-6.0.15.fw"
|
||||
#define FW_MIPS_FILE_09 "bnx2/bnx2-mips-09-6.2.1b.fw"
|
||||
|
@ -72,13 +70,9 @@
|
|||
/* Time in jiffies before concluding the transmitter is hung. */
|
||||
#define TX_TIMEOUT (5*HZ)
|
||||
|
||||
static char version[] =
|
||||
"QLogic " DRV_MODULE_NAME " Gigabit Ethernet Driver v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
|
||||
|
||||
MODULE_AUTHOR("Michael Chan <mchan@broadcom.com>");
|
||||
MODULE_DESCRIPTION("QLogic BCM5706/5708/5709/5716 Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
MODULE_FIRMWARE(FW_MIPS_FILE_06);
|
||||
MODULE_FIRMWARE(FW_RV2P_FILE_06);
|
||||
MODULE_FIRMWARE(FW_MIPS_FILE_09);
|
||||
|
@ -7048,7 +7042,6 @@ bnx2_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
|||
struct bnx2 *bp = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(bp->pdev), sizeof(info->bus_info));
|
||||
strlcpy(info->fw_version, bp->fw_version, sizeof(info->fw_version));
|
||||
}
|
||||
|
@ -8562,15 +8555,11 @@ static const struct net_device_ops bnx2_netdev_ops = {
|
|||
static int
|
||||
bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
static int version_printed = 0;
|
||||
struct net_device *dev;
|
||||
struct bnx2 *bp;
|
||||
int rc;
|
||||
char str[40];
|
||||
|
||||
if (version_printed++ == 0)
|
||||
pr_info("%s", version);
|
||||
|
||||
/* dev zeroed in init_etherdev */
|
||||
dev = alloc_etherdev_mq(sizeof(*bp), TX_MAX_RINGS);
|
||||
if (!dev)
|
||||
|
|
|
@ -32,8 +32,14 @@
|
|||
* (you will need to reboot afterwards) */
|
||||
/* #define BNX2X_STOP_ON_ERROR */
|
||||
|
||||
/* FIXME: Delete the DRV_MODULE_VERSION below, but please be warned
|
||||
* that it is not an easy task because such change has all chances
|
||||
* to break this driver due to amount of abuse of in-kernel interfaces
|
||||
* between modules and FW.
|
||||
*
|
||||
* DO NOT UPDATE DRV_MODULE_VERSION below.
|
||||
*/
|
||||
#define DRV_MODULE_VERSION "1.713.36-0"
|
||||
#define DRV_MODULE_RELDATE "2014/02/10"
|
||||
#define BNX2X_BC_VER 0x040200
|
||||
|
||||
#if defined(CONFIG_DCB)
|
||||
|
|
|
@ -1112,13 +1112,6 @@ static void bnx2x_get_drvinfo(struct net_device *dev,
|
|||
u32 mbi;
|
||||
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
|
||||
memset(version, 0, sizeof(version));
|
||||
snprintf(version, ETHTOOL_FWVERS_LEN, " storm %d.%d.%d.%d",
|
||||
BCM_5710_FW_MAJOR_VERSION, BCM_5710_FW_MINOR_VERSION,
|
||||
BCM_5710_FW_REVISION_VERSION, BCM_5710_FW_ENGINEERING_VERSION);
|
||||
strlcat(info->version, version, sizeof(info->version));
|
||||
|
||||
if (SHMEM2_HAS(bp, extended_dev_info_shared_addr)) {
|
||||
ext_dev_info_offset = SHMEM2_RD(bp,
|
||||
|
|
|
@ -81,17 +81,12 @@
|
|||
/* Time in jiffies before concluding the transmitter is hung */
|
||||
#define TX_TIMEOUT (5*HZ)
|
||||
|
||||
static char version[] =
|
||||
"QLogic 5771x/578xx 10/20-Gigabit Ethernet Driver "
|
||||
DRV_MODULE_NAME " " DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")\n";
|
||||
|
||||
MODULE_AUTHOR("Eliezer Tamir");
|
||||
MODULE_DESCRIPTION("QLogic "
|
||||
"BCM57710/57711/57711E/"
|
||||
"57712/57712_MF/57800/57800_MF/57810/57810_MF/"
|
||||
"57840/57840_MF Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
MODULE_FIRMWARE(FW_FILE_NAME_E1);
|
||||
MODULE_FIRMWARE(FW_FILE_NAME_E1H);
|
||||
MODULE_FIRMWARE(FW_FILE_NAME_E2);
|
||||
|
@ -14480,8 +14475,6 @@ static int __init bnx2x_init(void)
|
|||
{
|
||||
int ret;
|
||||
|
||||
pr_info("%s", version);
|
||||
|
||||
bnx2x_wq = create_singlethread_workqueue("bnx2x");
|
||||
if (bnx2x_wq == NULL) {
|
||||
pr_err("Cannot create workqueue\n");
|
||||
|
|
|
@ -70,12 +70,8 @@
|
|||
|
||||
#define BNXT_TX_TIMEOUT (5 * HZ)
|
||||
|
||||
static const char version[] =
|
||||
"Broadcom NetXtreme-C/E driver " DRV_MODULE_NAME " v" DRV_MODULE_VERSION "\n";
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Broadcom BCM573xx network driver");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
|
||||
#define BNXT_RX_OFFSET (NET_SKB_PAD + NET_IP_ALIGN)
|
||||
#define BNXT_RX_DMA_OFFSET NET_SKB_PAD
|
||||
|
@ -11775,7 +11771,6 @@ static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[])
|
|||
|
||||
static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
{
|
||||
static int version_printed;
|
||||
struct net_device *dev;
|
||||
struct bnxt *bp;
|
||||
int rc, max_irqs;
|
||||
|
@ -11783,9 +11778,6 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
if (pci_is_bridge(pdev))
|
||||
return -ENODEV;
|
||||
|
||||
if (version_printed++ == 0)
|
||||
pr_info("%s", version);
|
||||
|
||||
/* Clear any pending DMA transactions from crash kernel
|
||||
* while loading driver in capture kernel.
|
||||
*/
|
||||
|
|
|
@ -12,8 +12,10 @@
|
|||
#define BNXT_H
|
||||
|
||||
#define DRV_MODULE_NAME "bnxt_en"
|
||||
#define DRV_MODULE_VERSION "1.10.1"
|
||||
|
||||
/* DO NOT CHANGE DRV_VER_* defines
|
||||
* FIXME: Delete them
|
||||
*/
|
||||
#define DRV_VER_MAJ 1
|
||||
#define DRV_VER_MIN 10
|
||||
#define DRV_VER_UPD 1
|
||||
|
|
|
@ -1236,7 +1236,6 @@ static void bnxt_get_drvinfo(struct net_device *dev,
|
|||
struct bnxt *bp = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
strlcpy(info->fw_version, bp->fw_ver_str, sizeof(info->fw_version));
|
||||
strlcpy(info->bus_info, pci_name(bp->pdev), sizeof(info->bus_info));
|
||||
info->n_stats = bnxt_get_num_stats(bp);
|
||||
|
|
|
@ -219,7 +219,6 @@ static void bnxt_vf_rep_get_drvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
}
|
||||
|
||||
static int bnxt_vf_rep_get_port_parent_id(struct net_device *dev,
|
||||
|
|
|
@ -879,7 +879,6 @@ static void bcmgenet_get_drvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, "bcmgenet", sizeof(info->driver));
|
||||
strlcpy(info->version, "v2.0", sizeof(info->version));
|
||||
}
|
||||
|
||||
static int bcmgenet_get_sset_count(struct net_device *dev, int string_set)
|
||||
|
|
|
@ -96,11 +96,9 @@ static inline void _tg3_flag_clear(enum TG3_FLAGS flag, unsigned long *bits)
|
|||
_tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags)
|
||||
|
||||
#define DRV_MODULE_NAME "tg3"
|
||||
/* DO NOT UPDATE TG3_*_NUM defines */
|
||||
#define TG3_MAJ_NUM 3
|
||||
#define TG3_MIN_NUM 137
|
||||
#define DRV_MODULE_VERSION \
|
||||
__stringify(TG3_MAJ_NUM) "." __stringify(TG3_MIN_NUM)
|
||||
#define DRV_MODULE_RELDATE "May 11, 2014"
|
||||
|
||||
#define RESET_KIND_SHUTDOWN 0
|
||||
#define RESET_KIND_INIT 1
|
||||
|
@ -222,13 +220,9 @@ static inline void _tg3_flag_clear(enum TG3_FLAGS flag, unsigned long *bits)
|
|||
#define FIRMWARE_TG3TSO "tigon/tg3_tso.bin"
|
||||
#define FIRMWARE_TG3TSO5 "tigon/tg3_tso5.bin"
|
||||
|
||||
static char version[] =
|
||||
DRV_MODULE_NAME ".c:v" DRV_MODULE_VERSION " (" DRV_MODULE_RELDATE ")";
|
||||
|
||||
MODULE_AUTHOR("David S. Miller (davem@redhat.com) and Jeff Garzik (jgarzik@pobox.com)");
|
||||
MODULE_DESCRIPTION("Broadcom Tigon3 ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
MODULE_FIRMWARE(FIRMWARE_TG3);
|
||||
MODULE_FIRMWARE(FIRMWARE_TG3TSO);
|
||||
MODULE_FIRMWARE(FIRMWARE_TG3TSO5);
|
||||
|
@ -12317,7 +12311,6 @@ static void tg3_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info
|
|||
struct tg3 *tp = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
strlcpy(info->fw_version, tp->fw_ver, sizeof(info->fw_version));
|
||||
strlcpy(info->bus_info, pci_name(tp->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
@ -17625,8 +17618,6 @@ static int tg3_init_one(struct pci_dev *pdev,
|
|||
u64 dma_mask, persist_dma_mask;
|
||||
netdev_features_t features = 0;
|
||||
|
||||
printk_once(KERN_INFO "%s\n", version);
|
||||
|
||||
err = pci_enable_device(pdev);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "Cannot enable PCI device, aborting\n");
|
||||
|
|
|
@ -3842,9 +3842,6 @@ bnad_module_init(void)
|
|||
{
|
||||
int err;
|
||||
|
||||
pr_info("bna: QLogic BR-series 10G Ethernet driver - version: %s\n",
|
||||
BNAD_VERSION);
|
||||
|
||||
bfa_nw_ioc_auto_recover(bnad_ioc_auto_recover);
|
||||
|
||||
err = pci_register_driver(&bnad_pci_driver);
|
||||
|
@ -3869,6 +3866,5 @@ module_exit(bnad_module_exit);
|
|||
MODULE_AUTHOR("Brocade");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("QLogic BR-series 10G PCIe Ethernet driver");
|
||||
MODULE_VERSION(BNAD_VERSION);
|
||||
MODULE_FIRMWARE(CNA_FW_FILE_CT);
|
||||
MODULE_FIRMWARE(CNA_FW_FILE_CT2);
|
||||
|
|
|
@ -64,8 +64,6 @@ struct bnad_rx_ctrl {
|
|||
#define BNAD_NAME "bna"
|
||||
#define BNAD_NAME_LEN 64
|
||||
|
||||
#define BNAD_VERSION "3.2.25.1"
|
||||
|
||||
#define BNAD_MAILBOX_MSIX_INDEX 0
|
||||
#define BNAD_MAILBOX_MSIX_VECTORS 1
|
||||
#define BNAD_INTX_TX_IB_BITMASK 0x1
|
||||
|
|
|
@ -284,7 +284,6 @@ bnad_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo)
|
|||
unsigned long flags;
|
||||
|
||||
strlcpy(drvinfo->driver, BNAD_NAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, BNAD_VERSION, sizeof(drvinfo->version));
|
||||
|
||||
ioc_attr = kzalloc(sizeof(*ioc_attr), GFP_KERNEL);
|
||||
if (ioc_attr) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -25,17 +25,11 @@
|
|||
|
||||
#include "octeon_config.h"
|
||||
|
||||
#define LIQUIDIO_PACKAGE ""
|
||||
#define LIQUIDIO_BASE_MAJOR_VERSION 1
|
||||
#define LIQUIDIO_BASE_MINOR_VERSION 7
|
||||
#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;
|
||||
|
|
|
@ -840,17 +840,11 @@ int octeon_download_firmware(struct octeon_device *oct, const u8 *data,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (strncmp(LIQUIDIO_PACKAGE, h->version, strlen(LIQUIDIO_PACKAGE))) {
|
||||
dev_err(&oct->pci_dev->dev, "Unmatched firmware package type. Expected %s, got %s.\n",
|
||||
LIQUIDIO_PACKAGE, h->version);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (memcmp(LIQUIDIO_BASE_VERSION, h->version + strlen(LIQUIDIO_PACKAGE),
|
||||
if (memcmp(LIQUIDIO_BASE_VERSION, h->version,
|
||||
strlen(LIQUIDIO_BASE_VERSION))) {
|
||||
dev_err(&oct->pci_dev->dev, "Unmatched firmware version. Expected %s.x, got %s.\n",
|
||||
LIQUIDIO_BASE_VERSION,
|
||||
h->version + strlen(LIQUIDIO_PACKAGE));
|
||||
h->version);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@
|
|||
#include <asm/octeon/cvmx-agl-defs.h>
|
||||
|
||||
#define DRV_NAME "octeon_mgmt"
|
||||
#define DRV_VERSION "2.0"
|
||||
#define DRV_DESCRIPTION \
|
||||
"Cavium Networks Octeon MII (management) port Network Driver"
|
||||
|
||||
|
@ -1340,9 +1339,6 @@ static void octeon_mgmt_get_drvinfo(struct net_device *netdev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->fw_version, "N/A", sizeof(info->fw_version));
|
||||
strlcpy(info->bus_info, "N/A", sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
static int octeon_mgmt_nway_reset(struct net_device *dev)
|
||||
|
@ -1517,7 +1513,6 @@ static int octeon_mgmt_probe(struct platform_device *pdev)
|
|||
if (result)
|
||||
goto err;
|
||||
|
||||
dev_info(&pdev->dev, "Version " DRV_VERSION "\n");
|
||||
return 0;
|
||||
|
||||
err:
|
||||
|
@ -1574,4 +1569,3 @@ module_exit(octeon_mgmt_mod_exit);
|
|||
MODULE_DESCRIPTION(DRV_DESCRIPTION);
|
||||
MODULE_AUTHOR("David Daney");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
#include "../common/cavium_ptp.h"
|
||||
|
||||
#define DRV_NAME "nicvf"
|
||||
#define DRV_VERSION "1.0"
|
||||
|
||||
struct nicvf_stat {
|
||||
char name[ETH_GSTRING_LEN];
|
||||
|
@ -192,7 +191,6 @@ static void nicvf_get_drvinfo(struct net_device *netdev,
|
|||
struct nicvf *nic = netdev_priv(netdev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(nic->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
|
||||
#define DRV_DESCRIPTION "Chelsio 10Gb Ethernet Driver"
|
||||
#define DRV_NAME "cxgb"
|
||||
#define DRV_VERSION "2.2"
|
||||
|
||||
#define CH_DEVICE(devid, ssid, idx) \
|
||||
{ PCI_VENDOR_ID_CHELSIO, devid, PCI_ANY_ID, ssid, 0, 0, idx }
|
||||
|
|
|
@ -429,7 +429,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
|||
struct adapter *adapter = dev->ml_priv;
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(adapter->pdev),
|
||||
sizeof(info->bus_info));
|
||||
}
|
||||
|
@ -984,8 +983,6 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
struct adapter *adapter = NULL;
|
||||
struct port_info *pi;
|
||||
|
||||
pr_info_once("%s - version %s\n", DRV_DESCRIPTION, DRV_VERSION);
|
||||
|
||||
err = pci_enable_device(pdev);
|
||||
if (err)
|
||||
return err;
|
||||
|
|
|
@ -105,7 +105,6 @@ static const struct pci_device_id cxgb3_pci_tbl[] = {
|
|||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_AUTHOR("Chelsio Communications");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_DEVICE_TABLE(pci, cxgb3_pci_tbl);
|
||||
|
||||
static int dflt_msg_enable = DFLT_MSG_ENABLE;
|
||||
|
@ -1629,7 +1628,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
|||
spin_unlock(&adapter->stats_lock);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(adapter->pdev),
|
||||
sizeof(info->bus_info));
|
||||
if (fw_vers)
|
||||
|
@ -3210,8 +3208,6 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
struct adapter *adapter = NULL;
|
||||
struct port_info *pi;
|
||||
|
||||
pr_info_once("%s - version %s\n", DRV_DESC, DRV_VERSION);
|
||||
|
||||
if (!cxgb3_wq) {
|
||||
cxgb3_wq = create_singlethread_workqueue(DRV_NAME);
|
||||
if (!cxgb3_wq) {
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
#define __CHELSIO_VERSION_H
|
||||
#define DRV_DESC "Chelsio T3 Network Driver"
|
||||
#define DRV_NAME "cxgb3"
|
||||
/* Driver version */
|
||||
#define DRV_VERSION "1.1.5-ko"
|
||||
|
||||
/* Firmware version */
|
||||
#define FW_VERSION_MAJOR 7
|
||||
|
|
|
@ -1485,9 +1485,8 @@ static inline unsigned int qtimer_val(const struct adapter *adap,
|
|||
return idx < SGE_NTIMERS ? adap->sge.timer_val[idx] : 0;
|
||||
}
|
||||
|
||||
/* driver version & name used for ethtool_drvinfo */
|
||||
/* driver name used for ethtool_drvinfo */
|
||||
extern char cxgb4_driver_name[];
|
||||
extern const char cxgb4_driver_version[];
|
||||
|
||||
void t4_os_portmod_changed(struct adapter *adap, int port_id);
|
||||
void t4_os_link_changed(struct adapter *adap, int port_id, int link_stat);
|
||||
|
|
|
@ -170,15 +170,11 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
|||
u32 exprom_vers;
|
||||
|
||||
strlcpy(info->driver, cxgb4_driver_name, sizeof(info->driver));
|
||||
strlcpy(info->version, cxgb4_driver_version,
|
||||
sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(adapter->pdev),
|
||||
sizeof(info->bus_info));
|
||||
info->regdump_len = get_regs_len(dev);
|
||||
|
||||
if (!adapter->params.fw_vers)
|
||||
strcpy(info->fw_version, "N/A");
|
||||
else
|
||||
if (adapter->params.fw_vers)
|
||||
snprintf(info->fw_version, sizeof(info->fw_version),
|
||||
"%u.%u.%u.%u, TP %u.%u.%u.%u",
|
||||
FW_HDR_FW_VER_MAJOR_G(adapter->params.fw_vers),
|
||||
|
|
|
@ -90,11 +90,6 @@
|
|||
|
||||
char cxgb4_driver_name[] = KBUILD_MODNAME;
|
||||
|
||||
#ifdef DRV_VERSION
|
||||
#undef DRV_VERSION
|
||||
#endif
|
||||
#define DRV_VERSION "2.0.0-ko"
|
||||
const char cxgb4_driver_version[] = DRV_VERSION;
|
||||
#define DRV_DESC "Chelsio T4/T5/T6 Network Driver"
|
||||
|
||||
#define DFLT_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK | \
|
||||
|
@ -137,7 +132,6 @@ const char cxgb4_driver_version[] = DRV_VERSION;
|
|||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_AUTHOR("Chelsio Communications");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_DEVICE_TABLE(pci, cxgb4_pci_tbl);
|
||||
MODULE_FIRMWARE(FW4_FNAME);
|
||||
MODULE_FIRMWARE(FW5_FNAME);
|
||||
|
@ -3626,8 +3620,6 @@ static void cxgb4_mgmt_get_drvinfo(struct net_device *dev,
|
|||
struct adapter *adapter = netdev2adap(dev);
|
||||
|
||||
strlcpy(info->driver, cxgb4_driver_name, sizeof(info->driver));
|
||||
strlcpy(info->version, cxgb4_driver_version,
|
||||
sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(adapter->pdev),
|
||||
sizeof(info->bus_info));
|
||||
}
|
||||
|
@ -6081,8 +6073,6 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
int i, err;
|
||||
u32 whoami;
|
||||
|
||||
printk_once(KERN_INFO "%s - version %s\n", DRV_DESC, DRV_VERSION);
|
||||
|
||||
err = pci_request_regions(pdev, KBUILD_MODNAME);
|
||||
if (err) {
|
||||
/* Just info, some other driver may have claimed the device. */
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
/*
|
||||
* Generic information about the driver.
|
||||
*/
|
||||
#define DRV_VERSION "2.0.0-ko"
|
||||
#define DRV_DESC "Chelsio T4/T5/T6 Virtual Function (VF) Network Driver"
|
||||
|
||||
/*
|
||||
|
@ -1556,7 +1555,6 @@ static void cxgb4vf_get_drvinfo(struct net_device *dev,
|
|||
struct adapter *adapter = netdev2adap(dev);
|
||||
|
||||
strlcpy(drvinfo->driver, KBUILD_MODNAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
|
||||
strlcpy(drvinfo->bus_info, pci_name(to_pci_dev(dev->dev.parent)),
|
||||
sizeof(drvinfo->bus_info));
|
||||
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
|
||||
|
@ -2933,12 +2931,6 @@ static int cxgb4vf_pci_probe(struct pci_dev *pdev,
|
|||
struct net_device *netdev;
|
||||
unsigned int pf;
|
||||
|
||||
/*
|
||||
* Print our driver banner the first time we're called to initialize a
|
||||
* device.
|
||||
*/
|
||||
pr_info_once("%s - version %s\n", DRV_DESC, DRV_VERSION);
|
||||
|
||||
/*
|
||||
* Initialize generic PCI device state.
|
||||
*/
|
||||
|
@ -3454,7 +3446,6 @@ static void cxgb4vf_pci_shutdown(struct pci_dev *pdev)
|
|||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_AUTHOR("Chelsio Communications");
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_DEVICE_TABLE(pci, cxgb4vf_pci_tbl);
|
||||
|
||||
static struct pci_driver cxgb4vf_driver = {
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
*/
|
||||
|
||||
#define DRV_NAME "libcxgb"
|
||||
#define DRV_VERSION "1.0.0-ko"
|
||||
#define pr_fmt(fmt) DRV_NAME ": " fmt
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
@ -530,5 +529,4 @@ EXPORT_SYMBOL(cxgbi_tagmask_set);
|
|||
|
||||
MODULE_AUTHOR("Chelsio Communications");
|
||||
MODULE_DESCRIPTION("Chelsio common library");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include <linux/platform_data/eth-ep93xx.h>
|
||||
|
||||
#define DRV_MODULE_NAME "ep93xx-eth"
|
||||
#define DRV_MODULE_VERSION "0.1"
|
||||
|
||||
#define RX_QUEUE_ENTRIES 64
|
||||
#define TX_QUEUE_ENTRIES 8
|
||||
|
@ -691,7 +690,6 @@ static int ep93xx_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
|
|||
static void ep93xx_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
}
|
||||
|
||||
static int ep93xx_get_link_ksettings(struct net_device *dev,
|
||||
|
|
|
@ -33,8 +33,6 @@
|
|||
|
||||
#define DRV_NAME "enic"
|
||||
#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
|
||||
#define DRV_VERSION "2.3.0.53"
|
||||
#define DRV_COPYRIGHT "Copyright 2008-2013 Cisco Systems, Inc"
|
||||
|
||||
#define ENIC_BARS_MAX 6
|
||||
|
||||
|
|
|
@ -147,7 +147,6 @@ static void enic_get_drvinfo(struct net_device *netdev,
|
|||
return;
|
||||
|
||||
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
|
||||
strlcpy(drvinfo->fw_version, fw_info->fw_version,
|
||||
sizeof(drvinfo->fw_version));
|
||||
strlcpy(drvinfo->bus_info, pci_name(enic->pdev),
|
||||
|
|
|
@ -80,7 +80,6 @@ static const struct pci_device_id enic_id_table[] = {
|
|||
MODULE_DESCRIPTION(DRV_DESCRIPTION);
|
||||
MODULE_AUTHOR("Scott Feldman <scofeldm@cisco.com>");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_DEVICE_TABLE(pci, enic_id_table);
|
||||
|
||||
#define ENIC_LARGE_PKT_THRESHOLD 1000
|
||||
|
@ -3055,8 +3054,6 @@ static struct pci_driver enic_driver = {
|
|||
|
||||
static int __init enic_init_module(void)
|
||||
{
|
||||
pr_info("%s, ver %s\n", DRV_DESCRIPTION, DRV_VERSION);
|
||||
|
||||
return pci_register_driver(&enic_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "gemini.h"
|
||||
|
||||
#define DRV_NAME "gmac-gemini"
|
||||
#define DRV_VERSION "1.0"
|
||||
|
||||
#define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
|
||||
static int debug = -1;
|
||||
|
@ -2204,7 +2203,6 @@ static void gmac_get_drvinfo(struct net_device *netdev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strcpy(info->driver, DRV_NAME);
|
||||
strcpy(info->version, DRV_VERSION);
|
||||
strcpy(info->bus_info, netdev->dev_id ? "1" : "0");
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#define DM9000_PHY 0x40 /* PHY address 0x01 */
|
||||
|
||||
#define CARDNAME "dm9000"
|
||||
#define DRV_VERSION "1.31"
|
||||
|
||||
/*
|
||||
* Transmit timeout, default 5 seconds.
|
||||
|
@ -543,7 +542,6 @@ static void dm9000_get_drvinfo(struct net_device *dev,
|
|||
struct board_info *dm = to_dm9000_board(dev);
|
||||
|
||||
strlcpy(info->driver, CARDNAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, to_platform_device(dm->dev)->name,
|
||||
sizeof(info->bus_info));
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#define DRV_NAME "de2104x"
|
||||
#define DRV_VERSION "0.7"
|
||||
#define DRV_RELDATE "Mar 17, 2004"
|
||||
|
||||
#include <linux/module.h>
|
||||
|
@ -52,14 +51,9 @@
|
|||
#include <linux/uaccess.h>
|
||||
#include <asm/unaligned.h>
|
||||
|
||||
/* These identify the driver base version and may not be removed. */
|
||||
static char version[] =
|
||||
"PCI Ethernet driver v" DRV_VERSION " (" DRV_RELDATE ")";
|
||||
|
||||
MODULE_AUTHOR("Jeff Garzik <jgarzik@pobox.com>");
|
||||
MODULE_DESCRIPTION("Intel/Digital 21040/1 series PCI Ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
static int debug = -1;
|
||||
module_param (debug, int, 0);
|
||||
|
@ -1603,7 +1597,6 @@ static void de_get_drvinfo (struct net_device *dev,struct ethtool_drvinfo *info)
|
|||
struct de_private *de = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(de->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1980,11 +1973,6 @@ static int de_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
|
||||
board_idx++;
|
||||
|
||||
#ifndef MODULE
|
||||
if (board_idx == 0)
|
||||
pr_info("%s\n", version);
|
||||
#endif
|
||||
|
||||
/* allocate a new ethernet device structure, and fill in defaults */
|
||||
dev = alloc_etherdev(sizeof(struct de_private));
|
||||
if (!dev)
|
||||
|
@ -2196,9 +2184,6 @@ static struct pci_driver de_driver = {
|
|||
|
||||
static int __init de_init (void)
|
||||
{
|
||||
#ifdef MODULE
|
||||
pr_info("%s\n", version);
|
||||
#endif
|
||||
return pci_register_driver(&de_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -56,8 +56,6 @@
|
|||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#define DRV_NAME "dmfe"
|
||||
#define DRV_VERSION "1.36.4"
|
||||
#define DRV_RELDATE "2002-01-17"
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
|
@ -280,10 +278,6 @@ enum dmfe_CR6_bits {
|
|||
};
|
||||
|
||||
/* Global variable declaration ----------------------------- */
|
||||
static int printed_version;
|
||||
static const char version[] =
|
||||
"Davicom DM9xxx net driver, version " DRV_VERSION " (" DRV_RELDATE ")";
|
||||
|
||||
static int dmfe_debug;
|
||||
static unsigned char dmfe_media_mode = DMFE_AUTO;
|
||||
static u32 dmfe_cr6_user_set;
|
||||
|
@ -364,9 +358,6 @@ static int dmfe_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
|
||||
DMFE_DBUG(0, "dmfe_init_one()", 0);
|
||||
|
||||
if (!printed_version++)
|
||||
pr_info("%s\n", version);
|
||||
|
||||
/*
|
||||
* SPARC on-board DM910x chips should be handled by the main
|
||||
* tulip driver, except for early DM9100s.
|
||||
|
@ -1081,7 +1072,6 @@ static void dmfe_ethtool_get_drvinfo(struct net_device *dev,
|
|||
struct dmfe_board_info *np = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -2177,7 +2167,6 @@ static struct pci_driver dmfe_driver = {
|
|||
MODULE_AUTHOR("Sten Wang, sten_wang@davicom.com.tw");
|
||||
MODULE_DESCRIPTION("Davicom DM910X fast ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
module_param(debug, int, 0);
|
||||
module_param(mode, byte, 0);
|
||||
|
@ -2204,9 +2193,6 @@ static int __init dmfe_init_module(void)
|
|||
{
|
||||
int rc;
|
||||
|
||||
pr_info("%s\n", version);
|
||||
printed_version = 1;
|
||||
|
||||
DMFE_DBUG(0, "init_module() ", debug);
|
||||
|
||||
if (debug)
|
||||
|
|
|
@ -12,13 +12,6 @@
|
|||
#define pr_fmt(fmt) "tulip: " fmt
|
||||
|
||||
#define DRV_NAME "tulip"
|
||||
#ifdef CONFIG_TULIP_NAPI
|
||||
#define DRV_VERSION "1.1.15-NAPI" /* Keep at least for test */
|
||||
#else
|
||||
#define DRV_VERSION "1.1.15"
|
||||
#endif
|
||||
#define DRV_RELDATE "Feb 27, 2007"
|
||||
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/pci.h>
|
||||
|
@ -37,9 +30,6 @@
|
|||
#include <asm/prom.h>
|
||||
#endif
|
||||
|
||||
static char version[] =
|
||||
"Linux Tulip driver version " DRV_VERSION " (" DRV_RELDATE ")\n";
|
||||
|
||||
/* A few user-configurable values. */
|
||||
|
||||
/* Maximum events (Rx packets, etc.) to handle at each interrupt. */
|
||||
|
@ -109,7 +99,6 @@ static int csr0;
|
|||
MODULE_AUTHOR("The Linux Kernel Team");
|
||||
MODULE_DESCRIPTION("Digital 21*4* Tulip ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
module_param(tulip_debug, int, 0);
|
||||
module_param(max_interrupt_work, int, 0);
|
||||
module_param(rx_copybreak, int, 0);
|
||||
|
@ -868,7 +857,6 @@ static void tulip_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *in
|
|||
{
|
||||
struct tulip_private *np = netdev_priv(dev);
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1314,11 +1302,6 @@ static int tulip_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
unsigned int eeprom_missing = 0;
|
||||
unsigned int force_csr0 = 0;
|
||||
|
||||
#ifndef MODULE
|
||||
if (tulip_debug > 0)
|
||||
printk_once(KERN_INFO "%s", version);
|
||||
#endif
|
||||
|
||||
board_idx++;
|
||||
|
||||
/*
|
||||
|
@ -1800,14 +1783,13 @@ static void tulip_set_wolopts (struct pci_dev *pdev, u32 wolopts)
|
|||
void __iomem *ioaddr = tp->base_addr;
|
||||
|
||||
if (tp->flags & COMET_PM) {
|
||||
|
||||
unsigned int tmp;
|
||||
|
||||
|
||||
tmp = ioread32(ioaddr + CSR18);
|
||||
tmp &= ~(comet_csr18_pmes_sticky | comet_csr18_apm_mode | comet_csr18_d3a);
|
||||
tmp |= comet_csr18_pm_mode;
|
||||
iowrite32(tmp, ioaddr + CSR18);
|
||||
|
||||
|
||||
/* Set the Wake-up Control/Status Register to the given WOL options*/
|
||||
tmp = ioread32(ioaddr + CSR13);
|
||||
tmp &= ~(comet_csr13_linkoffe | comet_csr13_linkone | comet_csr13_wfre | comet_csr13_lsce | comet_csr13_mpre);
|
||||
|
@ -1969,10 +1951,6 @@ static struct pci_driver tulip_driver = {
|
|||
|
||||
static int __init tulip_init (void)
|
||||
{
|
||||
#ifdef MODULE
|
||||
pr_info("%s", version);
|
||||
#endif
|
||||
|
||||
if (!csr0) {
|
||||
pr_warn("tulip: unknown CPU architecture, using default csr0\n");
|
||||
/* default to 8 longword cache line alignment */
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#define DRV_NAME "uli526x"
|
||||
#define DRV_VERSION "0.9.3"
|
||||
#define DRV_RELDATE "2005-7-29"
|
||||
|
||||
#include <linux/module.h>
|
||||
|
||||
|
@ -196,10 +194,6 @@ enum uli526x_CR6_bits {
|
|||
};
|
||||
|
||||
/* Global variable declaration ----------------------------- */
|
||||
static int printed_version;
|
||||
static const char version[] =
|
||||
"ULi M5261/M5263 net driver, version " DRV_VERSION " (" DRV_RELDATE ")";
|
||||
|
||||
static int uli526x_debug;
|
||||
static unsigned char uli526x_media_mode = ULI526X_AUTO;
|
||||
static u32 uli526x_cr6_user_set;
|
||||
|
@ -282,9 +276,6 @@ static int uli526x_init_one(struct pci_dev *pdev,
|
|||
|
||||
ULI526X_DBUG(0, "uli526x_init_one()", 0);
|
||||
|
||||
if (!printed_version++)
|
||||
pr_info("%s\n", version);
|
||||
|
||||
/* Init network device */
|
||||
dev = alloc_etherdev(sizeof(*db));
|
||||
if (dev == NULL)
|
||||
|
@ -972,7 +963,6 @@ static void netdev_get_drvinfo(struct net_device *dev,
|
|||
struct uli526x_board_info *np = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1799,9 +1789,6 @@ MODULE_PARM_DESC(mode, "ULi M5261/M5263: Bit 0: 10/100Mbps, bit 2: duplex, bit 8
|
|||
static int __init uli526x_init_module(void)
|
||||
{
|
||||
|
||||
pr_info("%s\n", version);
|
||||
printed_version = 1;
|
||||
|
||||
ULI526X_DBUG(0, "init_module() ", debug);
|
||||
|
||||
if (debug)
|
||||
|
|
|
@ -47,9 +47,6 @@
|
|||
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||||
|
||||
#define DRV_NAME "winbond-840"
|
||||
#define DRV_VERSION "1.01-e"
|
||||
#define DRV_RELDATE "Sep-11-2006"
|
||||
|
||||
|
||||
/* Automatically extracted configuration info:
|
||||
probe-func: winbond840_probe
|
||||
|
@ -139,16 +136,9 @@ static int full_duplex[MAX_UNITS] = {-1, -1, -1, -1, -1, -1, -1, -1};
|
|||
#undef PKT_BUF_SZ /* tulip.h also defines this */
|
||||
#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/
|
||||
|
||||
/* These identify the driver base version and may not be removed. */
|
||||
static const char version[] __initconst =
|
||||
"v" DRV_VERSION " (2.4 port) "
|
||||
DRV_RELDATE " Donald Becker <becker@scyld.com>\n"
|
||||
" http://www.scyld.com/network/drivers.html\n";
|
||||
|
||||
MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
|
||||
MODULE_DESCRIPTION("Winbond W89c840 Ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
|
||||
module_param(max_interrupt_work, int, 0);
|
||||
module_param(debug, int, 0);
|
||||
|
@ -1385,7 +1375,6 @@ static void netdev_get_drvinfo (struct net_device *dev, struct ethtool_drvinfo *
|
|||
struct netdev_private *np = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1650,7 +1639,6 @@ static struct pci_driver w840_driver = {
|
|||
|
||||
static int __init w840_init(void)
|
||||
{
|
||||
printk(version);
|
||||
return pci_register_driver(&w840_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
*/
|
||||
|
||||
#define DRV_NAME "DL2000/TC902x-based linux driver"
|
||||
#define DRV_VERSION "v1.19"
|
||||
#define DRV_RELDATE "2007/08/12"
|
||||
#include "dl2k.h"
|
||||
#include <linux/dma-mapping.h>
|
||||
|
||||
|
@ -20,8 +18,6 @@
|
|||
#define dr16(reg) ioread16(ioaddr + (reg))
|
||||
#define dr8(reg) ioread8(ioaddr + (reg))
|
||||
|
||||
static char version[] =
|
||||
KERN_INFO DRV_NAME " " DRV_VERSION " " DRV_RELDATE "\n";
|
||||
#define MAX_UNITS 8
|
||||
static int mtu[MAX_UNITS];
|
||||
static int vlan[MAX_UNITS];
|
||||
|
@ -113,13 +109,9 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
int chip_idx = ent->driver_data;
|
||||
int err, irq;
|
||||
void __iomem *ioaddr;
|
||||
static int version_printed;
|
||||
void *ring_space;
|
||||
dma_addr_t ring_dma;
|
||||
|
||||
if (!version_printed++)
|
||||
printk ("%s", version);
|
||||
|
||||
err = pci_enable_device (pdev);
|
||||
if (err)
|
||||
return err;
|
||||
|
@ -1244,7 +1236,6 @@ static void rio_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info
|
|||
struct netdev_private *np = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, "dl2k", sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pdev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
*/
|
||||
|
||||
#define DRV_NAME "sundance"
|
||||
#define DRV_VERSION "1.2"
|
||||
#define DRV_RELDATE "11-Sep-2006"
|
||||
|
||||
|
||||
/* The user-configurable values.
|
||||
These may be modified when a driver module is loaded.*/
|
||||
|
@ -101,11 +98,6 @@ static char *media[MAX_UNITS];
|
|||
#include <linux/ethtool.h>
|
||||
#include <linux/mii.h>
|
||||
|
||||
/* These identify the driver base version and may not be removed. */
|
||||
static const char version[] =
|
||||
KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE
|
||||
" Written by Donald Becker\n";
|
||||
|
||||
MODULE_AUTHOR("Donald Becker <becker@scyld.com>");
|
||||
MODULE_DESCRIPTION("Sundance Alta Ethernet driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -516,13 +508,6 @@ static int sundance_probe1(struct pci_dev *pdev,
|
|||
#endif
|
||||
int phy, phy_end, phy_idx = 0;
|
||||
|
||||
/* when built into the kernel, we only print version if device is found */
|
||||
#ifndef MODULE
|
||||
static int printed_version;
|
||||
if (!printed_version++)
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
if (pci_enable_device(pdev))
|
||||
return -EIO;
|
||||
pci_set_master(pdev);
|
||||
|
@ -1657,7 +1642,6 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
|
|||
{
|
||||
struct netdev_private *np = netdev_priv(dev);
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -2010,10 +1994,6 @@ static struct pci_driver sundance_driver = {
|
|||
|
||||
static int __init sundance_init(void)
|
||||
{
|
||||
/* when a module, this is printed whether or not devices are found in probe */
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
return pci_register_driver(&sundance_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -729,7 +729,6 @@ static void dnet_get_drvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, "0", sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#define _DNET_H
|
||||
|
||||
#define DRV_NAME "dnet"
|
||||
#define DRV_VERSION "0.9.1"
|
||||
#define PFX DRV_NAME ": "
|
||||
|
||||
/* Register access macros */
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
#include "be_hw.h"
|
||||
#include "be_roce.h"
|
||||
|
||||
#define DRV_VER "12.0.0.0"
|
||||
#define DRV_NAME "be2net"
|
||||
#define BE_NAME "Emulex BladeEngine2"
|
||||
#define BE3_NAME "Emulex BladeEngine3"
|
||||
|
|
|
@ -221,7 +221,6 @@ static void be_get_drvinfo(struct net_device *netdev,
|
|||
struct be_adapter *adapter = netdev_priv(netdev);
|
||||
|
||||
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, DRV_VER, sizeof(drvinfo->version));
|
||||
if (!memcmp(adapter->fw_ver, adapter->fw_on_flash, FW_VER_LEN))
|
||||
strlcpy(drvinfo->fw_version, adapter->fw_ver,
|
||||
sizeof(drvinfo->fw_version));
|
||||
|
|
|
@ -21,8 +21,7 @@
|
|||
#include <net/busy_poll.h>
|
||||
#include <net/vxlan.h>
|
||||
|
||||
MODULE_VERSION(DRV_VER);
|
||||
MODULE_DESCRIPTION(DRV_DESC " " DRV_VER);
|
||||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_AUTHOR("Emulex Corporation");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
|
@ -5949,8 +5948,6 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id)
|
|||
struct net_device *netdev;
|
||||
int status = 0;
|
||||
|
||||
dev_info(&pdev->dev, "%s version is %s\n", DRV_NAME, DRV_VER);
|
||||
|
||||
status = pci_enable_device(pdev);
|
||||
if (status)
|
||||
goto do_none;
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
#include "ftgmac100.h"
|
||||
|
||||
#define DRV_NAME "ftgmac100"
|
||||
#define DRV_VERSION "0.7"
|
||||
|
||||
/* Arbitrary values, I am not sure the HW has limits */
|
||||
#define MAX_RX_QUEUE_ENTRIES 1024
|
||||
|
@ -1150,7 +1149,6 @@ static void ftgmac100_get_drvinfo(struct net_device *netdev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, dev_name(&netdev->dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include "ftmac100.h"
|
||||
|
||||
#define DRV_NAME "ftmac100"
|
||||
#define DRV_VERSION "0.2"
|
||||
|
||||
#define RX_QUEUE_ENTRIES 128 /* must be power of 2 */
|
||||
#define TX_QUEUE_ENTRIES 16 /* must be power of 2 */
|
||||
|
@ -809,7 +808,6 @@ static void ftmac100_get_drvinfo(struct net_device *netdev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, dev_name(&netdev->dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1184,7 +1182,6 @@ static struct platform_driver ftmac100_driver = {
|
|||
*****************************************************************************/
|
||||
static int __init ftmac100_init(void)
|
||||
{
|
||||
pr_info("Loading version " DRV_VERSION " ...\n");
|
||||
return platform_driver_register(&ftmac100_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@
|
|||
*/
|
||||
|
||||
#define DRV_NAME "fealnx"
|
||||
#define DRV_VERSION "2.52"
|
||||
#define DRV_RELDATE "Sep-11-2006"
|
||||
|
||||
static int debug; /* 1-> print debug message */
|
||||
static int max_interrupt_work = 20;
|
||||
|
@ -91,11 +89,6 @@ static int full_duplex[MAX_UNITS] = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
|||
#include <linux/uaccess.h>
|
||||
#include <asm/byteorder.h>
|
||||
|
||||
/* These identify the driver base version and may not be removed. */
|
||||
static const char version[] =
|
||||
KERN_INFO DRV_NAME ".c:v" DRV_VERSION " " DRV_RELDATE "\n";
|
||||
|
||||
|
||||
/* This driver was written to use PCI memory space, however some x86 systems
|
||||
work only with I/O space accesses. */
|
||||
#ifndef __alpha__
|
||||
|
@ -495,13 +488,6 @@ static int fealnx_init_one(struct pci_dev *pdev,
|
|||
int bar = 1;
|
||||
#endif
|
||||
|
||||
/* when built into the kernel, we only print version if device is found */
|
||||
#ifndef MODULE
|
||||
static int printed_version;
|
||||
if (!printed_version++)
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
card_idx++;
|
||||
sprintf(boardname, "fealnx%d", card_idx);
|
||||
|
||||
|
@ -1809,7 +1795,6 @@ static void netdev_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *i
|
|||
struct netdev_private *np = netdev_priv(dev);
|
||||
|
||||
strlcpy(info->driver, DRV_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_VERSION, sizeof(info->version));
|
||||
strlcpy(info->bus_info, pci_name(np->pci_dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
@ -1950,11 +1935,6 @@ static struct pci_driver fealnx_driver = {
|
|||
|
||||
static int __init fealnx_init(void)
|
||||
{
|
||||
/* when a module, this is printed whether or not devices are found in probe */
|
||||
#ifdef MODULE
|
||||
printk(version);
|
||||
#endif
|
||||
|
||||
return pci_register_driver(&fealnx_driver);
|
||||
}
|
||||
|
||||
|
|
|
@ -106,19 +106,8 @@ static int dpaa_set_link_ksettings(struct net_device *net_dev,
|
|||
static void dpaa_get_drvinfo(struct net_device *net_dev,
|
||||
struct ethtool_drvinfo *drvinfo)
|
||||
{
|
||||
int len;
|
||||
|
||||
strlcpy(drvinfo->driver, KBUILD_MODNAME,
|
||||
sizeof(drvinfo->driver));
|
||||
len = snprintf(drvinfo->version, sizeof(drvinfo->version),
|
||||
"%X", 0);
|
||||
len = snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
|
||||
"%X", 0);
|
||||
|
||||
if (len >= sizeof(drvinfo->fw_version)) {
|
||||
/* Truncated output */
|
||||
netdev_notice(net_dev, "snprintf() = %d\n", len);
|
||||
}
|
||||
strlcpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent),
|
||||
sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
|
|
@ -7,12 +7,6 @@
|
|||
#include <linux/of_net.h>
|
||||
#include "enetc_pf.h"
|
||||
|
||||
#define ENETC_DRV_VER_MAJ 1
|
||||
#define ENETC_DRV_VER_MIN 0
|
||||
|
||||
#define ENETC_DRV_VER_STR __stringify(ENETC_DRV_VER_MAJ) "." \
|
||||
__stringify(ENETC_DRV_VER_MIN)
|
||||
static const char enetc_drv_ver[] = ENETC_DRV_VER_STR;
|
||||
#define ENETC_DRV_NAME_STR "ENETC PF driver"
|
||||
static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
|
||||
|
||||
|
@ -929,9 +923,6 @@ static int enetc_pf_probe(struct pci_dev *pdev,
|
|||
|
||||
netif_carrier_off(ndev);
|
||||
|
||||
netif_info(priv, probe, ndev, "%s v%s\n",
|
||||
enetc_drv_name, enetc_drv_ver);
|
||||
|
||||
return 0;
|
||||
|
||||
err_reg_netdev:
|
||||
|
@ -959,9 +950,6 @@ static void enetc_pf_remove(struct pci_dev *pdev)
|
|||
enetc_sriov_configure(pdev, 0);
|
||||
|
||||
priv = netdev_priv(si->ndev);
|
||||
netif_info(priv, drv, si->ndev, "%s v%s remove\n",
|
||||
enetc_drv_name, enetc_drv_ver);
|
||||
|
||||
unregister_netdev(si->ndev);
|
||||
|
||||
enetc_mdio_remove(pf);
|
||||
|
@ -995,4 +983,3 @@ module_pci_driver(enetc_pf_driver);
|
|||
|
||||
MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_VERSION(ENETC_DRV_VER_STR);
|
||||
|
|
|
@ -4,12 +4,6 @@
|
|||
#include <linux/module.h>
|
||||
#include "enetc.h"
|
||||
|
||||
#define ENETC_DRV_VER_MAJ 1
|
||||
#define ENETC_DRV_VER_MIN 0
|
||||
|
||||
#define ENETC_DRV_VER_STR __stringify(ENETC_DRV_VER_MAJ) "." \
|
||||
__stringify(ENETC_DRV_VER_MIN)
|
||||
static const char enetc_drv_ver[] = ENETC_DRV_VER_STR;
|
||||
#define ENETC_DRV_NAME_STR "ENETC VF driver"
|
||||
static const char enetc_drv_name[] = ENETC_DRV_NAME_STR;
|
||||
|
||||
|
@ -201,9 +195,6 @@ static int enetc_vf_probe(struct pci_dev *pdev,
|
|||
|
||||
netif_carrier_off(ndev);
|
||||
|
||||
netif_info(priv, probe, ndev, "%s v%s\n",
|
||||
enetc_drv_name, enetc_drv_ver);
|
||||
|
||||
return 0;
|
||||
|
||||
err_reg_netdev:
|
||||
|
@ -225,8 +216,6 @@ static void enetc_vf_remove(struct pci_dev *pdev)
|
|||
struct enetc_ndev_priv *priv;
|
||||
|
||||
priv = netdev_priv(si->ndev);
|
||||
netif_info(priv, drv, si->ndev, "%s v%s remove\n",
|
||||
enetc_drv_name, enetc_drv_ver);
|
||||
unregister_netdev(si->ndev);
|
||||
|
||||
enetc_free_msix(priv);
|
||||
|
@ -254,4 +243,3 @@ module_pci_driver(enetc_vf_driver);
|
|||
|
||||
MODULE_DESCRIPTION(ENETC_DRV_NAME_STR);
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_VERSION(ENETC_DRV_VER_STR);
|
||||
|
|
|
@ -2128,7 +2128,6 @@ static void fec_enet_get_drvinfo(struct net_device *ndev,
|
|||
|
||||
strlcpy(info->driver, fep->pdev->dev.driver->name,
|
||||
sizeof(info->driver));
|
||||
strlcpy(info->version, "Revision: 1.0", sizeof(info->version));
|
||||
strlcpy(info->bus_info, dev_name(&ndev->dev), sizeof(info->bus_info));
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
MODULE_AUTHOR("Pantelis Antoniou <panto@intracom.gr>");
|
||||
MODULE_DESCRIPTION("Freescale Ethernet Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_VERSION(DRV_MODULE_VERSION);
|
||||
|
||||
static int fs_enet_debug = -1; /* -1 == use FS_ENET_DEF_MSG_ENABLE as value */
|
||||
module_param(fs_enet_debug, int, 0);
|
||||
|
@ -790,7 +789,6 @@ static void fs_get_drvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *info)
|
||||
{
|
||||
strlcpy(info->driver, DRV_MODULE_NAME, sizeof(info->driver));
|
||||
strlcpy(info->version, DRV_MODULE_VERSION, sizeof(info->version));
|
||||
}
|
||||
|
||||
static int fs_get_regs_len(struct net_device *dev)
|
||||
|
|
|
@ -190,8 +190,6 @@ void fs_cleanup_bds(struct net_device *dev);
|
|||
|
||||
#define DRV_MODULE_NAME "fs_enet"
|
||||
#define PFX DRV_MODULE_NAME ": "
|
||||
#define DRV_MODULE_VERSION "1.1"
|
||||
#define DRV_MODULE_RELDATE "Sep 22, 2014"
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
|
|
|
@ -103,8 +103,6 @@
|
|||
|
||||
#define TX_TIMEOUT (5*HZ)
|
||||
|
||||
const char gfar_driver_version[] = "2.0";
|
||||
|
||||
MODULE_AUTHOR("Freescale Semiconductor, Inc");
|
||||
MODULE_DESCRIPTION("Gianfar Ethernet Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
@ -68,7 +68,6 @@ struct ethtool_rx_list {
|
|||
#define RXBUF_ALIGNMENT 64
|
||||
|
||||
#define DRV_NAME "gfar-enet"
|
||||
extern const char gfar_driver_version[];
|
||||
|
||||
/* MAXIMUM NUMBER OF QUEUES SUPPORTED */
|
||||
#define MAX_TX_QS 0x8
|
||||
|
|
|
@ -164,10 +164,6 @@ static void gfar_gdrvinfo(struct net_device *dev,
|
|||
struct ethtool_drvinfo *drvinfo)
|
||||
{
|
||||
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, gfar_driver_version,
|
||||
sizeof(drvinfo->version));
|
||||
strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
|
||||
strlcpy(drvinfo->bus_info, "N/A", sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
||||
/* Return the length of the register structure */
|
||||
|
|
|
@ -3990,5 +3990,4 @@ module_exit(ucc_geth_exit);
|
|||
|
||||
MODULE_AUTHOR("Freescale Semiconductor, Inc");
|
||||
MODULE_DESCRIPTION(DRV_DESC);
|
||||
MODULE_VERSION(DRV_VERSION);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#define DRV_DESC "QE UCC Gigabit Ethernet Controller"
|
||||
#define DRV_NAME "ucc_geth"
|
||||
#define DRV_VERSION "1.1"
|
||||
|
||||
#define NUM_TX_QUEUES 8
|
||||
#define NUM_RX_QUEUES 8
|
||||
|
|
|
@ -334,8 +334,6 @@ uec_get_drvinfo(struct net_device *netdev,
|
|||
struct ethtool_drvinfo *drvinfo)
|
||||
{
|
||||
strlcpy(drvinfo->driver, DRV_NAME, sizeof(drvinfo->driver));
|
||||
strlcpy(drvinfo->version, DRV_VERSION, sizeof(drvinfo->version));
|
||||
strlcpy(drvinfo->fw_version, "N/A", sizeof(drvinfo->fw_version));
|
||||
strlcpy(drvinfo->bus_info, "QUICC ENGINE", sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue