summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-09-19 01:49:28 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-19 08:41:45 (GMT)
commit3dc031dd21ffb8d389c329e3429888212df467aa (patch)
tree2be025687c9c971d8604a9c63dc23d218aa8897a /drivers
parent235960ed744dcd1a22d0667190758f37de9fb15a (diff)
downloadlinux-fsl-qoriq-3dc031dd21ffb8d389c329e3429888212df467aa.tar.xz
staging: comedi: daqboard2000: use the driver name for the resource name
Use the dev->driver->driver_name instead of the literal string for the reqource name passed to comedi_pci_enable(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/daqboard2000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c
index 00360e4..ff81829 100644
--- a/drivers/staging/comedi/drivers/daqboard2000.c
+++ b/drivers/staging/comedi/drivers/daqboard2000.c
@@ -715,7 +715,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
return -ENOMEM;
devpriv = dev->private;
- result = comedi_pci_enable(pcidev, "daqboard2000");
+ result = comedi_pci_enable(pcidev, dev->driver->driver_name);
if (result < 0)
return result;
dev->iobase = 1; /* the "detach" needs this */