[PATCH] PPC64 iSeries_pci.c use for_each_pci_dev()

From: Paul Mackerras
Date: Thu Nov 04 2004 - 21:06:16 EST


This patch is from Hanna Linder.

As pci_find_device is going away using the new for_each_pci_dev macro.
If someone with a PPC64 system could test it I would appreciate it.

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/iSeries_pci.c test/arch/ppc64/kernel/iSeries_pci.c
--- linux-2.5/arch/ppc64/kernel/iSeries_pci.c 2004-10-30 09:25:20.000000000 +1000
+++ test/arch/ppc64/kernel/iSeries_pci.c 2004-11-05 11:59:48.645822176 +1100
@@ -312,8 +312,7 @@
mf_displaySrc(0xC9000100);

printk("pcibios_final_fixup\n");
- while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev))
- != NULL) {
+ for_each_pci_dev(pdev) {
node = find_Device_Node(pdev->bus->number, pdev->devfn);
printk("pci dev %p (%x.%x), node %p\n", pdev,
pdev->bus->number, pdev->devfn, node);
-
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/