Skip to content

Commit

Permalink
sfc: Replace EFX_DRIVER_NAME with KBUILD_MODNAME
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ben Hutchings authored and David S. Miller committed Jun 25, 2010
1 parent 62776d0 commit c5d5f5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/net/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2432,7 +2432,7 @@ static struct dev_pm_ops efx_pm_ops = {
};

static struct pci_driver efx_pci_driver = {
.name = EFX_DRIVER_NAME,
.name = KBUILD_MODNAME,
.id_table = efx_pci_table,
.probe = efx_pci_probe,
.remove = efx_pci_remove,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/sfc/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static void efx_ethtool_get_drvinfo(struct net_device *net_dev,
{
struct efx_nic *efx = netdev_priv(net_dev);

strlcpy(info->driver, EFX_DRIVER_NAME, sizeof(info->driver));
strlcpy(info->driver, KBUILD_MODNAME, sizeof(info->driver));
strlcpy(info->version, EFX_DRIVER_VERSION, sizeof(info->version));
if (efx_nic_rev(efx) >= EFX_REV_SIENA_A0)
siena_print_fwver(efx, info->fw_version,
Expand Down
4 changes: 1 addition & 3 deletions drivers/net/sfc/net_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
* Build definitions
*
**************************************************************************/
#ifndef EFX_DRIVER_NAME
#define EFX_DRIVER_NAME "sfc"
#endif

#define EFX_DRIVER_VERSION "3.0"

#ifdef EFX_ENABLE_DEBUG
Expand Down

0 comments on commit c5d5f5f

Please sign in to comment.