Skip to content

Commit

Permalink
If ACPI doesn't find an irq listed, don't accept 0 as a valid PCI irq.
Browse files Browse the repository at this point in the history
That zero just means that nothing else found any irq information either.
  • Loading branch information
Linus Torvalds committed Jul 2, 2005
1 parent 4a89a04 commit 44f8e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/pci_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ acpi_pci_irq_enable (
printk(KERN_WARNING PREFIX "PCI Interrupt %s[%c]: no GSI",
pci_name(dev), ('A' + pin));
/* Interrupt Line values above 0xF are forbidden */
if (dev->irq >= 0 && (dev->irq <= 0xF)) {
if (dev->irq > 0 && (dev->irq <= 0xF)) {
printk(" - using IRQ %d\n", dev->irq);
acpi_register_gsi(dev->irq, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_LOW);
return_VALUE(0);
Expand Down

0 comments on commit 44f8e1a

Please sign in to comment.