Skip to contentSkip to conversation

arch/i386/pci/acpi.c Use for_each_pci_dev macro

PATCH New [email protected] 1 participant 1 message Jun 20, 2005 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 arch/i386/pci/acpi.c Use for_each_pci_dev macro

From: Hanna Linder <hannal-r/[email protected]>

Using the new for_each_pci_dev macro. Compiled and boot tested.

---
 acpi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/pci/acpi.c +1 -1
Index: quilt/arch/i386/pci/acpi.c
===================================================================
@@ -38,7 +38,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");

--

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click