Patchwork [07/18] PCI, sparc: Register busn_res for root buses

login
register
mail settings
Submitter Yinghai Lu
Date Feb. 28, 2012, 2:09 a.m.
Message ID <1330395009-29260-8-git-send-email-yinghai@kernel.org>
Download mbox | patch
Permalink /patch/143311/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Yinghai Lu - Feb. 28, 2012, 2:09 a.m.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
---
 arch/sparc/kernel/pci.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/sparc/kernel/pci.c b/arch/sparc/kernel/pci.c
index 253e8ac..57ffe31 100644
--- a/arch/sparc/kernel/pci.c
+++ b/arch/sparc/kernel/pci.c
@@ -705,6 +705,7 @@  struct pci_bus * __devinit pci_scan_one_pbm(struct pci_pbm_info *pbm,
 	}
 	bus->secondary = pbm->pci_first_busno;
 	bus->subordinate = pbm->pci_last_busno;
+	pci_bus_insert_busn_res(bus, pbm->pci_first_busno, pbm->pci_last_busno);
 
 	pci_of_scan_bus(pbm, node, bus);
 	pci_bus_add_devices(bus);