public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 1/4] arch/i386/pci/acpi.c Use for_each_pci_dev macro
@ 2005-06-20 21:50 domen-CvScVCPLwOZg9hUCZPvPmw
  0 siblings, 0 replies; only message in thread
From: domen-CvScVCPLwOZg9hUCZPvPmw @ 2005-06-20 21:50 UTC (permalink / raw)
  To: len.brown-ral2JQCrhuEAvxtiuMwx3w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Hanna Linder,
	Maximilian Attems, domen-CvScVCPLwOZg9hUCZPvPmw

[-- Attachment #1: for-each-pci-dev-arch_i386_pci_acpi.patch --]
[-- Type: text/plain, Size: 1397 bytes --]

From: Hanna Linder <hannal-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>



Using the new for_each_pci_dev macro. Compiled and boot tested.

Signed-off-by: Hanna Linder <hannal-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Maximilian Attems <janitor-Aga/KQc5HWxW3WIO4DnKWw@public.gmane.org>
Signed-off-by: Domen Puncer <domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org>
---
 acpi.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/arch/i386/pci/acpi.c
===================================================================
--- quilt.orig/arch/i386/pci/acpi.c
+++ 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-20 21:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 21:50 [patch 1/4] arch/i386/pci/acpi.c Use for_each_pci_dev macro domen-CvScVCPLwOZg9hUCZPvPmw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox