Skip to content

Commit

Permalink
staging: comedi: adl_pci6208: 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 for the resource name passed to
pci_request_regions(), by way of comedi_pci_enable(), instead of
the open coded string "adl_pci6208".

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 Jul 6, 2012
1 parent 2d993c2 commit 404f999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/comedi/drivers/adl_pci6208.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static int pci6208_attach(struct comedi_device *dev,

dev->board_name = thisboard->name;

ret = comedi_pci_enable(devpriv->pci_dev, "adl_pci6208");
ret = comedi_pci_enable(devpriv->pci_dev, dev->driver->driver_name);
if (ret) {
dev_err(dev->class_dev,
"Failed to enable PCI device and request regions\n");
Expand Down

0 comments on commit 404f999

Please sign in to comment.