sfc: Replace EFX_DRIVER_NAME with KBUILD_MODNAME
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 23 Jun 2010 11:30:26 +0000 (11:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jun 2010 05:13:23 +0000 (22:13 -0700)
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/efx.c
drivers/net/sfc/ethtool.c
drivers/net/sfc/net_driver.h

index 72514005c2a3adf87badf67eddd23a8c34d60441..ad359110813b04b630576e0b445a8b773cf8555c 100644 (file)
@@ -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,
index 27230a992893b7d6819384ea0ea01e3d5409f563..53f3eb20f4ea97b6988eb99e905ab1be5f75958c 100644 (file)
@@ -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,
index 0cca44b4ee449be2306fc81461a38ceee2501eaa..9116dc977abb2fc073c0563884d940aaa779eeea 100644 (file)
@@ -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