aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/acpi/boot.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index 4bf004bab4b2..ec3a286163c3 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -619,17 +619,17 @@ int acpi_gsi_to_irq(u32 gsi, unsigned int *irqp)
619 } 619 }
620 620
621 rc = acpi_get_override_irq(gsi, &trigger, &polarity); 621 rc = acpi_get_override_irq(gsi, &trigger, &polarity);
622 if (rc == 0) { 622 if (rc)
623 trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; 623 return rc;
624 polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;
625 irq = acpi_register_gsi(NULL, gsi, trigger, polarity);
626 if (irq >= 0) {
627 *irqp = irq;
628 return 0;
629 }
630 }
631 624
632 return -1; 625 trigger = trigger ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE;
626 polarity = polarity ? ACPI_ACTIVE_LOW : ACPI_ACTIVE_HIGH;
627 irq = acpi_register_gsi(NULL, gsi, trigger, polarity);
628 if (irq < 0)
629 return irq;
630
631 *irqp = irq;
632 return 0;
633} 633}
634EXPORT_SYMBOL_GPL(acpi_gsi_to_irq); 634EXPORT_SYMBOL_GPL(acpi_gsi_to_irq);
635 635