summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/bios32.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-02-18 14:33:46 -0700
committerBjorn Helgaas <bhelgaas@google.com>2014-02-18 14:33:46 -0700
commit6354647f55b9848dc9aaa091e2f762ca1a3eb085 (patch)
treecec2c643c1635d92d903444f2e6586eda75110dc /arch/arm/kernel/bios32.c
parentc128856b48b1a7132166c6b37a53b086d549fbde (diff)
parent94e6a9b93064b49024b8701d2d81fcb4a821fa09 (diff)
downloadblackbird-obmc-linux-6354647f55b9848dc9aaa091e2f762ca1a3eb085.tar.gz
blackbird-obmc-linux-6354647f55b9848dc9aaa091e2f762ca1a3eb085.zip
Merge branch 'pci/list-for-each-entry' into next
* pci/list-for-each-entry: PCI: Remove pci_bus_b() and use list_for_each_entry() directly pcmcia: Use list_for_each_entry() for bus traversal powerpc/PCI: Use list_for_each_entry() for bus traversal drm: Use list_for_each_entry() for bus traversal ARM/PCI: Use list_for_each_entry() for bus traversal ACPI / hotplug / PCI: Use list_for_each_entry() for bus traversal
Diffstat (limited to 'arch/arm/kernel/bios32.c')
-rw-r--r--arch/arm/kernel/bios32.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c
index 317da88ae65b..004670e97ca8 100644
--- a/arch/arm/kernel/bios32.c
+++ b/arch/arm/kernel/bios32.c
@@ -57,13 +57,10 @@ static void pcibios_bus_report_status(struct pci_bus *bus, u_int status_mask, in
void pcibios_report_status(u_int status_mask, int warn)
{
- struct list_head *l;
-
- list_for_each(l, &pci_root_buses) {
- struct pci_bus *bus = pci_bus_b(l);
+ struct pci_bus *bus;
+ list_for_each_entry(bus, &pci_root_buses, node)
pcibios_bus_report_status(bus, status_mask, warn);
- }
}
/*
OpenPOWER on IntegriCloud