Commit 5502efcb authored by Paul Mackerras's avatar Paul Mackerras Committed by Linus Torvalds

[PATCH] ppc64: iSeries_pci.c use for_each_pci_dev()

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: default avatarHanna Linder <hannal@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2bc900c0
...@@ -312,8 +312,7 @@ void __init iSeries_pci_final_fixup(void) ...@@ -312,8 +312,7 @@ void __init iSeries_pci_final_fixup(void)
mf_displaySrc(0xC9000100); mf_displaySrc(0xC9000100);
printk("pcibios_final_fixup\n"); printk("pcibios_final_fixup\n");
while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev)) for_each_pci_dev(pdev) {
!= NULL) {
node = find_Device_Node(pdev->bus->number, pdev->devfn); node = find_Device_Node(pdev->bus->number, pdev->devfn);
printk("pci dev %p (%x.%x), node %p\n", pdev, printk("pci dev %p (%x.%x), node %p\n", pdev,
pdev->bus->number, pdev->devfn, node); pdev->bus->number, pdev->devfn, node);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment