Replace open-coded list traversal with list_for_each_entry(). CC: Paul Mundt <lethal@xxxxxxxxxxxx> CC: linux-sh@xxxxxxxxxxxxxxx Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> --- arch/sh/drivers/pci/pci.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index af9246d..e425b08 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c @@ -171,11 +171,8 @@ static void pcibios_fixup_device_resources(struct pci_dev *dev, void __devinit pcibios_fixup_bus(struct pci_bus *bus) { struct pci_dev *dev; - struct list_head *ln; - - 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->class >> 8) != PCI_CLASS_BRIDGE_PCI) pcibios_fixup_device_resources(dev, bus); } -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html