Commit ba4c61cb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in arch/ppc64/kernel/iSeries_pci.c

parent a3ffe228
...@@ -304,7 +304,7 @@ void iSeries_pcibios_init(void) ...@@ -304,7 +304,7 @@ void iSeries_pcibios_init(void)
***********************************************************************/ ***********************************************************************/
void __init pcibios_final_fixup(void) void __init pcibios_final_fixup(void)
{ {
struct pci_dev* PciDev; struct pci_dev* PciDev = NULL;
struct iSeries_Device_Node* DeviceNode; struct iSeries_Device_Node* DeviceNode;
char Buffer[256]; char Buffer[256];
int DeviceCount = 0; int DeviceCount = 0;
...@@ -315,7 +315,7 @@ void __init pcibios_final_fixup(void) ...@@ -315,7 +315,7 @@ void __init pcibios_final_fixup(void)
/******************************************************/ /******************************************************/
mf_displaySrc(0xC9000100); 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); DeviceNode = find_Device_Node(PciDev);
if(DeviceNode != NULL) { if(DeviceNode != NULL) {
++DeviceCount; ++DeviceCount;
......
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