Commit 3dc031dd authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 235960ed
...@@ -715,7 +715,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev, ...@@ -715,7 +715,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev,
return -ENOMEM; return -ENOMEM;
devpriv = dev->private; devpriv = dev->private;
result = comedi_pci_enable(pcidev, "daqboard2000"); result = comedi_pci_enable(pcidev, dev->driver->driver_name);
if (result < 0) if (result < 0)
return result; return result;
dev->iobase = 1; /* the "detach" needs this */ dev->iobase = 1; /* the "detach" needs this */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment