diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-17 00:44:18 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-08-22 19:34:38 +0200 |
commit | fd3768349b0ba7bac9e102a8f146f783a03926fe (patch) | |
tree | 5b9ff973c95a87630ade40f4a6f77bf52930ad32 /arch/frv | |
parent | PCI: Leave normal LIST_POISON in deleted list entries (diff) | |
download | linux-fd3768349b0ba7bac9e102a8f146f783a03926fe.tar.xz linux-fd3768349b0ba7bac9e102a8f146f783a03926fe.zip |
frv/PCI: Use list_for_each_entry() for bus->devices traversal
Replace open-coded list traversal with list_for_each_entry().
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
CC: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/mb93090-mb00/pci-vdk.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/frv/mb93090-mb00/pci-vdk.c b/arch/frv/mb93090-mb00/pci-vdk.c index d04ed14bbf0c..71e9bcf58105 100644 --- a/arch/frv/mb93090-mb00/pci-vdk.c +++ b/arch/frv/mb93090-mb00/pci-vdk.c @@ -330,10 +330,8 @@ void __init pcibios_fixup_bus(struct pci_bus *bus) pci_read_bridge_bases(bus); if (bus->number == 0) { - struct list_head *ln; struct pci_dev *dev; - for (ln=bus->devices.next; ln != &bus->devices; ln=ln->next) { - dev = pci_dev_b(ln); + list_for_each_entry(dev, &bus->devices, bus_list) { if (dev->devfn == 0) { dev->resource[0].start = 0; dev->resource[0].end = 0; |