[IA64] Properly unregister legacy interrupts

acpi_unregister_gsi() should "undo" what acpi_register_gsi() does.

On systems that have legacy interrupts, acpi_unregister_gsi erroneously calls
iosapci_unregister_intr() which is wrong to do and causes a loud warning.

acpi_unregister_gsi() should just return in these cases.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Prarit Bhargava and committed by Tony Luck 3fb2c74e 7af1d753

+3
+3
arch/ia64/kernel/acpi.c
··· 627 if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM) 628 return; 629 630 iosapic_unregister_intr(gsi); 631 } 632
··· 627 if (acpi_irq_model == ACPI_IRQ_MODEL_PLATFORM) 628 return; 629 630 + if (has_8259 && gsi < 16) 631 + return; 632 + 633 iosapic_unregister_intr(gsi); 634 } 635