Commit 3dd5ca83 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

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: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21309dab
...@@ -495,7 +495,7 @@ static int __devinit hpdi_auto_attach(struct comedi_device *dev, ...@@ -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, ...@@ -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;
......
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