public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] frv: replace now removed pci_bus_b() causing build failure
@ 2014-02-20 17:46 Paul Gortmaker
  2014-02-20 18:16 ` Bjorn Helgaas
  2014-02-21  1:17 ` Yijing Wang
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Gortmaker @ 2014-02-20 17:46 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel, Paul Gortmaker, Yijing Wang, Bjorn Helgaas

In commit 94e6a9b93064b49024b8701d2d81fcb4a821fa09 ("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.

Cc: Yijing Wang <wangyijing@huawei.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---

[Note: commit ID referenced above is from linux-next and will
 be invalid if the PCI-next content is ever rebased.]

 arch/frv/mb93090-mb00/pci-frv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/frv/mb93090-mb00/pci-frv.c b/arch/frv/mb93090-mb00/pci-frv.c
index c28121765448..67b1d1685759 100644
--- a/arch/frv/mb93090-mb00/pci-frv.c
+++ b/arch/frv/mb93090-mb00/pci-frv.c
@@ -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];
-- 
1.8.5.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-21  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 17:46 [PATCH] frv: replace now removed pci_bus_b() causing build failure Paul Gortmaker
2014-02-20 18:16 ` Bjorn Helgaas
2014-02-21  1:17 ` Yijing Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox