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>
#include "comedi_fc.h"
#include "ni_labpc.h"
#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 */
/* size of io region used by board */
#define LABPC_SIZE 32
/* 2 MHz master clock */
EXPORT_SYMBOL_GPL(labpc_common_detach);
static struct comedi_driver labpc_driver = {
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,
.module = THIS_MODULE,
.attach = labpc_attach,
.auto_attach = labpc_auto_attach,
}
static struct pci_driver labpc_pci_driver = {
}
static struct pci_driver labpc_pci_driver = {
.id_table = labpc_pci_table,
.probe = labpc_pci_probe,
.remove = comedi_pci_auto_unconfig,
.id_table = labpc_pci_table,
.probe = labpc_pci_probe,
.remove = comedi_pci_auto_unconfig,