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>
This commit is contained in:
H Hartley Sweeten 2012-09-18 18:49:28 -07:00 committed by Greg Kroah-Hartman
parent 235960ed74
commit 3dc031dd21
1 changed files with 1 additions and 1 deletions

View File

@ -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 */