diff options
Diffstat (limited to 'arch/mips64/sgi-ip27/ip27-pci.c')
-rw-r--r-- | arch/mips64/sgi-ip27/ip27-pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-pci.c b/arch/mips64/sgi-ip27/ip27-pci.c index c92230662..45e9cd649 100644 --- a/arch/mips64/sgi-ip27/ip27-pci.c +++ b/arch/mips64/sgi-ip27/ip27-pci.c @@ -172,7 +172,6 @@ void __init pcibios_fixup_bus(struct pci_bus *b) { unsigned short command; - struct list_head *ln; struct pci_dev *dev; pci_fixup_irqs(pci_swizzle, pci_map_irq); @@ -183,8 +182,7 @@ pcibios_fixup_bus(struct pci_bus *b) * stop working if we program the controllers as not having * PCI_COMMAND_MEMORY, so we have to fudge the mem_flags. */ - for (ln=b->devices.next; ln != &b->devices; ln=ln->next) { - dev = pci_dev_b(ln); + for (dev = b->devices; dev; dev = dev->sibling) { if (PCI_FUNC(dev->devfn) == 0) { if ((PCI_SLOT(dev->devfn) == 0) || (PCI_SLOT(dev->devfn) == 1)) { |