arch/i386/pci/acpi.c Use for_each_pci_dev macro
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.
Signed-off-by Hanna Linder <hannal-r/[email protected]>
Signed-off-by Maximilian Attems <janitor-Aga/[email protected]>
Signed-off-by Domen Puncer <[email protected]>
--- acpi.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
arch/i386/pci/acpi.c +1 -1
@@ -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