staging: comedi: ni_labpc: remove DRV_NAME
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 16:46:28 +0000 (09:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:41:52 +0000 (11:41 -0700)
Remove the DRV_NAME define and just open code the string in the
comedi_driver and pci_driver declarations.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_labpc.c

index 887fa8cc2684bac8f740333f64e4841754dc2bae..54669b46e7e2f54e1b0c68fef7f4b84f4b675ff2 100644 (file)
@@ -89,8 +89,6 @@ NI manuals:
 #include "comedi_fc.h"
 #include "ni_labpc.h"
 
-#define DRV_NAME "ni_labpc"
-
 /* size of io region used by board */
 #define LABPC_SIZE           32
 /* 2 MHz master clock */
@@ -1969,7 +1967,7 @@ void labpc_common_detach(struct comedi_device *dev)
 EXPORT_SYMBOL_GPL(labpc_common_detach);
 
 static struct comedi_driver labpc_driver = {
-       .driver_name    = DRV_NAME,
+       .driver_name    = "ni_labpc",
        .module         = THIS_MODULE,
        .attach         = labpc_attach,
        .auto_attach    = labpc_auto_attach,
@@ -1993,7 +1991,7 @@ static int labpc_pci_probe(struct pci_dev *dev,
 }
 
 static struct pci_driver labpc_pci_driver = {
-       .name           = DRV_NAME,
+       .name           = "ni_labpc",
        .id_table       = labpc_pci_table,
        .probe          = labpc_pci_probe,
        .remove         = comedi_pci_auto_unconfig,