From 0c498ffbd052aaaf4fca34861c6e203f03f307ce Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Tue, 9 Dec 2008 16:11:57 -0700 Subject: [PATCH] --- yaml --- r: 127365 b: refs/heads/master c: 12b955ff63db0b75cfc2d4939696c57b31891ec6 h: refs/heads/master i: 127363: 0284a9107afa654808904cda71085a4af8896cea v: v3 --- [refs] | 2 +- trunk/arch/x86/pci/irq.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index d94653ac8d5a..dd6cb38e917b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f672c392b9c61bcdfb1247561d404b2c3ed4b0b3 +refs/heads/master: 12b955ff63db0b75cfc2d4939696c57b31891ec6 diff --git a/trunk/arch/x86/pci/irq.c b/trunk/arch/x86/pci/irq.c index cc9d5e254060..e1d605bfeb47 100644 --- a/trunk/arch/x86/pci/irq.c +++ b/trunk/arch/x86/pci/irq.c @@ -1041,6 +1041,9 @@ static void __init pcibios_fixup_irqs(void) dev = NULL; while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) { pci_read_config_byte(dev, PCI_INTERRUPT_PIN, &pin); + if (!pin) + continue; + #ifdef CONFIG_X86_IO_APIC /* * Recalculate IRQ numbers if we use the I/O APIC. @@ -1048,9 +1051,6 @@ static void __init pcibios_fixup_irqs(void) if (io_apic_assign_pci_irqs) { int irq; - if (!pin) - continue; - /* * interrupt pins are numbered starting from 1 */ @@ -1091,7 +1091,7 @@ static void __init pcibios_fixup_irqs(void) /* * Still no IRQ? Try to lookup one... */ - if (pin && !dev->irq) + if (!dev->irq) pcibios_lookup_irq(dev, 0); } }