Skip to content

Commit

Permalink
staging: comedi: daqboard2000: use the driver name for the resource name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 19, 2012
1 parent 235960e commit 3dc031d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/daqboard2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3dc031d

Please sign in to comment.