[PATCH] PPC64 pmac_pci.c replace pci_find_device with pci_get_device

From: Paul Mackerras
Date: Fri Nov 05 2004 - 00:26:28 EST


This patch is from Hanna Linder.

As pci_find_device is going away using the new for_each_pci_dev macro.

Signed-off-by: Hanna Linder <hannal@xxxxxxxxxx>
Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>
Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>

diff -urN linux-2.5/arch/ppc64/kernel/pmac_pci.c test/arch/ppc64/kernel/pmac_pci.c
--- linux-2.5/arch/ppc64/kernel/pmac_pci.c 2004-10-26 16:06:41.000000000 +1000
+++ test/arch/ppc64/kernel/pmac_pci.c 2004-11-05 13:15:58.000000000 +1100
@@ -663,7 +663,7 @@
{
struct pci_dev *dev = NULL;

- while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+ for_each_pci_dev(dev)
pci_read_irq_line(dev);

pci_fix_bus_sysdata();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/