Commit 88907397 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] acpi pci_link fix

From: Christophe Saout <christophe@saout.de>

- acpi_pci_link_get_irq() returns 0 on error, not -ENODEV.

- Fix mpparse.c tpyo.
parent 5e8ab613
......@@ -850,7 +850,7 @@ static int __init mp_find_ioapic (
return i;
}
printk(KERN_ERR "ERROR: Unable to locate IOAPIC for IRQ %d/n", irq);
printk(KERN_ERR "ERROR: Unable to locate IOAPIC for IRQ %d\n", irq);
return -1;
}
......
......@@ -516,9 +516,8 @@ acpi_pci_link_get_irq (
return_VALUE(0);
}
if (acpi_pci_link_allocate(link)) {
return -ENODEV;
}
if (acpi_pci_link_allocate(link))
return_VALUE(0);
if (!link->irq.active) {
ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Link disabled\n"));
......
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