Commit 50b80896 authored by Matthew Wilcox's avatar Matthew Wilcox Committed by David Mosberger

[PATCH] ia64: use has_8259 in acpi_register_irq()

acpi_madt is marked as __initdata, so an attempt to use
acpi_register_irq() after we discarded init sections would cause us to
dereference a random location.  Everywhere else uses has_8259 anyway.
parent 2411e08e
......@@ -720,7 +720,7 @@ acpi_register_irq (u32 gsi, u32 polarity, u32 trigger)
{
int vector = 0;
if (acpi_madt->flags.pcat_compat && (gsi < 16))
if (has_8259 && (gsi < 16))
return isa_irq_to_vector(gsi);
if (!iosapic_register_intr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment