aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/kernel/acpi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
index c6ede8780ded..3d45d24a9d61 100644
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -741,16 +741,15 @@ int __init acpi_boot_init(void)
741 741
742int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) 742int acpi_gsi_to_irq(u32 gsi, unsigned int *irq)
743{ 743{
744 int vector; 744 int tmp;
745 745
746 if (has_8259 && gsi < 16) 746 if (has_8259 && gsi < 16)
747 *irq = isa_irq_to_vector(gsi); 747 *irq = isa_irq_to_vector(gsi);
748 else { 748 else {
749 vector = gsi_to_vector(gsi); 749 tmp = gsi_to_irq(gsi);
750 if (vector == -1) 750 if (tmp == -1)
751 return -1; 751 return -1;
752 752 *irq = tmp;
753 *irq = vector;
754 } 753 }
755 return 0; 754 return 0;
756} 755}