staging: comedi: gsc_hpdi: use board name to request resources
When requesting PCI region resources and IRQ, use the board name as the resource owner string instead of the driver name. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
21309dabd3
commit
3dd5ca8313
@@ -495,7 +495,7 @@ static int __devinit hpdi_auto_attach(struct comedi_device *dev,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
dev->private = devpriv;
|
dev->private = devpriv;
|
||||||
|
|
||||||
if (comedi_pci_enable(pcidev, dev->driver->driver_name)) {
|
if (comedi_pci_enable(pcidev, dev->board_name)) {
|
||||||
dev_warn(dev->class_dev,
|
dev_warn(dev->class_dev,
|
||||||
"failed enable PCI device and request regions\n");
|
"failed enable PCI device and request regions\n");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
@@ -521,7 +521,7 @@ static int __devinit hpdi_auto_attach(struct comedi_device *dev,
|
|||||||
|
|
||||||
/* get irq */
|
/* get irq */
|
||||||
if (request_irq(pcidev->irq, handle_interrupt, IRQF_SHARED,
|
if (request_irq(pcidev->irq, handle_interrupt, IRQF_SHARED,
|
||||||
dev->driver->driver_name, dev)) {
|
dev->board_name, dev)) {
|
||||||
dev_warn(dev->class_dev,
|
dev_warn(dev->class_dev,
|
||||||
"unable to allocate irq %u\n", pcidev->irq);
|
"unable to allocate irq %u\n", pcidev->irq);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
Reference in New Issue
Block a user