[patch 02/11] arch/i386/pci/acpi.c Use for_each_pci_dev macro

From: domen
Date: Tue Jan 11 2005 - 19:38:57 EST





Using the new for_each_pci_dev macro. Compiled and boot tested.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>
Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>

---

Signed-off-by: Domen Puncer <domen@xxxxxxxxxxxx>
---


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

diff -puN arch/i386/pci/acpi.c~for-each-pci-dev-arch_i386_pci_acpi arch/i386/pci/acpi.c
--- kj/arch/i386/pci/acpi.c~for-each-pci-dev-arch_i386_pci_acpi 2005-01-10 17:59:56.000000000 +0100
+++ kj-domen/arch/i386/pci/acpi.c 2005-01-10 17:59:56.000000000 +0100
@@ -41,7 +41,7 @@ static int __init pci_acpi_init(void)
printk(KERN_INFO "** was specified. If this was required to make a driver work,\n");
printk(KERN_INFO "** please email the output of \"lspci\" to bjorn.helgaas@xxxxxx\n");
printk(KERN_INFO "** so I can fix the driver.\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 interrupts are no longer routed automatically. If this\n");
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/