[PATCH 392/577] Staging: cxt1e1: fix up one remaining THIS_MODULE usage

Greg Kroah-Hartman gregkh at suse.de
Fri May 21 20:02:01 UTC 2010


From: Peter Hüwe <PeterHuewe at gmx.de>

Copied from original Patch by Randy Dunlap

Signed-off-by: Peter Huewe <peterhuewe at gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
---
 drivers/staging/cxt1e1/hwprobe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
index 8d4e8d2..4c86102 100644
--- a/drivers/staging/cxt1e1/hwprobe.c
+++ b/drivers/staging/cxt1e1/hwprobe.c
@@ -283,7 +283,7 @@ c4_hdw_init (struct pci_dev * pdev, int found)
          */
         char       *cp = hi->devname;
 
-        strcpy (cp, THIS_MODULE->name);
+        strcpy (cp, KBUILD_MODNAME);
         cp += strlen (cp);          /* reposition */
         *cp++ = '-';
         *cp++ = '0' + (found / 2);  /* there are two found interfaces per
-- 
1.7.0.3




More information about the devel mailing list