summaryrefslogtreecommitdiffstats
path: root/arch/ppc/kernel/chrp_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ppc/kernel/chrp_pci.c')
-rw-r--r--arch/ppc/kernel/chrp_pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/ppc/kernel/chrp_pci.c b/arch/ppc/kernel/chrp_pci.c
index 88686acc4..b93bc45f7 100644
--- a/arch/ppc/kernel/chrp_pci.c
+++ b/arch/ppc/kernel/chrp_pci.c
@@ -282,8 +282,7 @@ chrp_pcibios_fixup(void)
}
/* PCI interrupts are controlled by the OpenPIC */
- for( dev=pci_devices ; dev; dev=dev->next )
- {
+ pci_for_each_dev(dev) {
if ( dev->irq )
dev->irq = openpic_to_irq( dev->irq );
/* these need to be absolute addrs for OF and Matrox FB -- Cort */