diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-04 03:41:24 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-06-04 03:41:24 -0700 |
| commit | ba4c61cb9d3fcbd241b2a5165b2265f0b6a0791a (patch) | |
| tree | 0e29301133f6f006adf0cabd171d2346201ae6dc | |
| parent | a3ffe2285b77d095a435b3278e28666e4d2cf6d3 (diff) | |
[PATCH] PCI: remove usage of pci_for_each_dev() in arch/ppc64/kernel/iSeries_pci.c
| -rw-r--r-- | arch/ppc64/kernel/iSeries_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/iSeries_pci.c b/arch/ppc64/kernel/iSeries_pci.c index 925ce19d6199..5b48861b0a3f 100644 --- a/arch/ppc64/kernel/iSeries_pci.c +++ b/arch/ppc64/kernel/iSeries_pci.c @@ -304,7 +304,7 @@ void iSeries_pcibios_init(void) ***********************************************************************/ void __init pcibios_final_fixup(void) { - struct pci_dev* PciDev; + struct pci_dev* PciDev = NULL; struct iSeries_Device_Node* DeviceNode; char Buffer[256]; int DeviceCount = 0; @@ -315,7 +315,7 @@ void __init pcibios_final_fixup(void) /******************************************************/ mf_displaySrc(0xC9000100); - pci_for_each_dev(PciDev) { + while ((PciDev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, PciDev)) != NULL) { DeviceNode = find_Device_Node(PciDev); if(DeviceNode != NULL) { ++DeviceCount; |
