Re: [PATCH] PCI fixes for 2.6.10-rc1

Greg KH
2004-11-12T23:25:56Z

ChangeSet 1.2091.1.5, 2004/11/12 14:01:55-08:00, hannal@us.ibm.com

[PATCH] chrp_pci.c: replace pci_find_device with for_each_pci_dev

Signed-off-by: Hanna Linder <hannal@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

arch/ppc/platforms/chrp_pci.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -Nru a/arch/ppc/platforms/chrp_pci.c b/arch/ppc/platforms/chrp_pci.c
--- a/arch/ppc/platforms/chrp_pci.c 2004-11-12 15:11:26 -08:00
+++ b/arch/ppc/platforms/chrp_pci.c 2004-11-12 15:11:26 -08:00
@@ -158,7 +158,7 @@
struct device_node *np;

/* PCI interrupts are controlled by the OpenPIC */
- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+ for_each_pci_dev(dev) {
np = pci_device_to_OF_node(dev);
if ((np != 0) && (np->n_intrs > 0) && (np->intrs[0].line != 0))
dev->irq = np->intrs[0].line;