arch/i386/pci/acpi.c: use for_each_pci_dev
diff mbox series

Message ID 20050914151930.GA19491@mipter.zuzino.mipt.ru
State New, archived
Headers show
Series
  • arch/i386/pci/acpi.c: use for_each_pci_dev
Related show

Commit Message

Alexey Dobriyan Sept. 14, 2005, 3:19 p.m. UTC
From: Hanna Linder <hannal@us.ibm.com>

Compile and boot tested.

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 arch/i386/pci/acpi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Patch
diff mbox series

--- a/arch/i386/pci/acpi.c
+++ b/arch/i386/pci/acpi.c
@@ -54,7 +54,7 @@  static int __init pci_acpi_init(void)
 		 * don't use pci_enable_device().
 		 */
 		printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n");
-		while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+		for_each_pci_dev(dev)
 			acpi_pci_irq_enable(dev);
 	} else
 		printk(KERN_INFO "PCI: If a device doesn't work, try \"pci=routeirq\".  If it helps, post a report\n");