* [patch 1/1] arch/i386/pci/acpi.c Use for_each_pci_dev macro
@ 2005-03-05 15:29 domen-CvScVCPLwOZg9hUCZPvPmw
[not found] ` <20050305152937.6C73F1EE1E-FMNAFCfKBdkof1z7V/zXpkB+6BGkLq7r@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: domen-CvScVCPLwOZg9hUCZPvPmw @ 2005-03-05 15:29 UTC (permalink / raw)
To: len.brown-ral2JQCrhuEAvxtiuMwx3w
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
domen-CvScVCPLwOZg9hUCZPvPmw, hannal-r/Jw6+rmf7HQT0dZR+AlfA,
janitor-Aga/KQc5HWxW3WIO4DnKWw
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>
---
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-03-05 16:09:18.000000000 +0100
+++ kj-domen/arch/i386/pci/acpi.c 2005-03-05 16:09:18.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-VXdhtT5mjnY@public.gmane.org\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");
_
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 1/1] arch/i386/pci/acpi.c Use for_each_pci_dev macro
[not found] ` <20050305152937.6C73F1EE1E-FMNAFCfKBdkof1z7V/zXpkB+6BGkLq7r@public.gmane.org>
@ 2005-03-07 17:02 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2005-03-07 17:02 UTC (permalink / raw)
To: domen-CvScVCPLwOZg9hUCZPvPmw
Cc: Len Brown, ACPI List, hannal-r/Jw6+rmf7HQT0dZR+AlfA,
janitor-Aga/KQc5HWxW3WIO4DnKWw
On Sat, 2005-03-05 at 16:29 +0100, domen-CvScVCPLwOZg9hUCZPvPmw@public.gmane.org wrote:
> 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>
> ---
>
>
> 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-03-05 16:09:18.000000000 +0100
> +++ kj-domen/arch/i386/pci/acpi.c 2005-03-05 16:09:18.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-VXdhtT5mjnY@public.gmane.org\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");
> _
>
>
This looks OK to me, but the patch will need to be updated because
Linus just applied my patch to change the printk message preceeding
your change.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-07 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-05 15:29 [patch 1/1] arch/i386/pci/acpi.c Use for_each_pci_dev macro domen-CvScVCPLwOZg9hUCZPvPmw
[not found] ` <20050305152937.6C73F1EE1E-FMNAFCfKBdkof1z7V/zXpkB+6BGkLq7r@public.gmane.org>
2005-03-07 17:02 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox