staging: comedi: gsc_hpdi: use board name to request resources
authorIan Abbott <abbotti@mev.co.uk>
Thu, 1 Nov 2012 16:28:32 +0000 (16:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Nov 2012 19:33:22 +0000 (12:33 -0700)
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>
drivers/staging/comedi/drivers/gsc_hpdi.c

index adcc002bba6b8f222838496bb7d34798c68dd349..4f829b666fe5296ebfbcdcb84de34f02b534c411 100644 (file)
@@ -495,7 +495,7 @@ static int __devinit hpdi_auto_attach(struct comedi_device *dev,
                return -ENOMEM;
        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,
                         "failed enable PCI device and request regions\n");
                return -EIO;
@@ -521,7 +521,7 @@ static int __devinit hpdi_auto_attach(struct comedi_device *dev,
 
        /*  get irq */
        if (request_irq(pcidev->irq, handle_interrupt, IRQF_SHARED,
-                       dev->driver->driver_name, dev)) {
+                       dev->board_name, dev)) {
                dev_warn(dev->class_dev,
                         "unable to allocate irq %u\n", pcidev->irq);
                return -EINVAL;