Try all of the possible interrupts for a link device when programming

boot-disabled devices instead of skipping the last interrupt.  This is
especially important for devices that only have one interrupt as this
bug was keeping any interrupt from being tried at all.

Reviewed by:	msmith
Approved by:	re (scottl)
This commit is contained in:
jhb 2003-11-20 21:23:49 +00:00
parent 39caffc9b9
commit 5afc80ec76

View File

@ -924,7 +924,7 @@ acpi_pci_link_fixup_bootdisabled_link(void)
}
/* try with lower penalty IRQ. */
for (i = 0; i < link->number_of_interrupts - 1; i++) {
for (i = 0; i < link->number_of_interrupts; i++) {
irq1 = link->sorted_irq[i];
error = acpi_pci_link_set_irq(link, irq1);
if (error == AE_OK) {