]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ieee1394: ohci1394: pass error codes from request_irq through
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 6 Dec 2008 16:35:20 +0000 (17:35 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Jan 2009 22:50:33 +0000 (23:50 +0100)
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/ieee1394/ohci1394.c

index 066726bcb0eecc95cfca7a2ccb675b83ff83901a..d077fe6d0ce5a962d52fe14e4192622400d50528 100644 (file)
@@ -3233,8 +3233,9 @@ static int __devinit ohci1394_pci_probe(struct pci_dev *dev,
         * we need to get to that "no event", so enough should be initialized
         * by that point.
         */
-       if (request_irq(dev->irq, ohci_irq_handler, IRQF_SHARED,
-                        OHCI1394_DRIVER_NAME, ohci)) {
+       err = request_irq(dev->irq, ohci_irq_handler, IRQF_SHARED,
+                         OHCI1394_DRIVER_NAME, ohci);
+       if (err) {
                PRINT_G(KERN_ERR, "Failed to allocate interrupt %d", dev->irq);
                goto err;
        }
@@ -3423,10 +3424,11 @@ static int ohci1394_pci_resume(struct pci_dev *dev)
        reg_write(ohci, OHCI1394_IntMaskClear, 0xffffffff);
        mdelay(50);
 
-       if (request_irq(dev->irq, ohci_irq_handler, IRQF_SHARED,
-                       OHCI1394_DRIVER_NAME, ohci)) {
+       err = request_irq(dev->irq, ohci_irq_handler, IRQF_SHARED,
+                         OHCI1394_DRIVER_NAME, ohci);
+       if (err) {
                PRINT_G(KERN_ERR, "Failed to allocate interrupt %d", dev->irq);
-               return -EIO;
+               return err;
        }
 
        ohci_initialize(ohci);