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