PCI: frv: replace now removed pci_bus_b() causing build failure
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 20 Feb 2014 17:46:06 +0000 (12:46 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Feb 2014 18:11:44 +0000 (11:11 -0700)
In commit 94e6a9b93064 ("PCI: Remove pci_bus_b() and use
list_for_each_entry() directly") the function pci_bus_b() was removed, but
one instance of its usage was missed.

Replace it in the same fashion that the original commit did.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Yijing Wang <wangyijing@huawei.com>
arch/frv/mb93090-mb00/pci-frv.c

index c281217654487cb059e1e790c951c3a7dabdef22..67b1d16857593ddc083bf45cc8fd9e19d5430994 100644 (file)
@@ -88,7 +88,7 @@ static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
 
        /* Depth-First Search on bus tree */
        for (ln=bus_list->next; ln != bus_list; ln=ln->next) {
-               bus = pci_bus_b(ln);
+               bus = list_entry(ln, struct pci_bus, node);
                if ((dev = bus->self)) {
                        for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) {
                                r = &dev->resource[idx];