diff options
Diffstat (limited to 'drivers/acpi/pci_irq.c')
-rw-r--r-- | drivers/acpi/pci_irq.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index bb973d2109a1..c885300579ec 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c | |||
@@ -424,6 +424,7 @@ acpi_pci_irq_enable ( | |||
424 | int edge_level = ACPI_LEVEL_SENSITIVE; | 424 | int edge_level = ACPI_LEVEL_SENSITIVE; |
425 | int active_high_low = ACPI_ACTIVE_LOW; | 425 | int active_high_low = ACPI_ACTIVE_LOW; |
426 | char *link = NULL; | 426 | char *link = NULL; |
427 | int rc; | ||
427 | 428 | ||
428 | ACPI_FUNCTION_TRACE("acpi_pci_irq_enable"); | 429 | ACPI_FUNCTION_TRACE("acpi_pci_irq_enable"); |
429 | 430 | ||
@@ -476,7 +477,13 @@ acpi_pci_irq_enable ( | |||
476 | } | 477 | } |
477 | } | 478 | } |
478 | 479 | ||
479 | dev->irq = acpi_register_gsi(irq, edge_level, active_high_low); | 480 | rc = acpi_register_gsi(irq, edge_level, active_high_low); |
481 | if (rc < 0) { | ||
482 | printk(KERN_WARNING PREFIX "PCI Interrupt %s[%c]: failed " | ||
483 | "to register GSI\n", pci_name(dev), ('A' + pin)); | ||
484 | return_VALUE(rc); | ||
485 | } | ||
486 | dev->irq = rc; | ||
480 | 487 | ||
481 | printk(KERN_INFO PREFIX "PCI Interrupt %s[%c] -> ", | 488 | printk(KERN_INFO PREFIX "PCI Interrupt %s[%c] -> ", |
482 | pci_name(dev), 'A' + pin); | 489 | pci_name(dev), 'A' + pin); |