public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org
To: len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	Hanna Linder <hannal-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
	Maximilian Attems
	<janitor-Aga/KQc5HWxW3WIO4DnKWw@public.gmane.org>,
	domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org
Subject: [patch 1/4] arch/i386/pci/acpi.c Use for_each_pci_dev macro
Date: Mon, 20 Jun 2005 23:50:55 +0200	[thread overview]
Message-ID: <20050620215054.814162000@nd47.coderock.org> (raw)

[-- 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

                 reply	other threads:[~2005-06-20 21:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050620215054.814162000@nd47.coderock.org \
    --to=domen-cvscvcplwozg9huczpvpmw@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=hannal-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=janitor-Aga/KQc5HWxW3WIO4DnKWw@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox