From: Linus Torvalds Date: Sat, 2 Jul 2005 17:35:33 +0000 (-0700) Subject: If ACPI doesn't find an irq listed, don't accept 0 as a valid PCI irq. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=44f8e1a20cf3afe10a3744bd9317808a39a242bb;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git If ACPI doesn't find an irq listed, don't accept 0 as a valid PCI irq. That zero just means that nothing else found any irq information either. --- diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c index 8dbf802ee7f..d1f42b97282 100644 --- a/drivers/acpi/pci_irq.c +++ b/drivers/acpi/pci_irq.c @@ -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);