Patchwork [20/21] PCI: Register busn_res for iov bus

login
register
mail settings
Submitter Yinghai Lu
Date May 7, 2012, 8:30 p.m.
Message ID <1336422606-4244-21-git-send-email-yinghai@kernel.org>
Download mbox | patch
Permalink /patch/157429/
State Rejected
Headers show

Comments

Yinghai Lu - May 7, 2012, 8:30 p.m.
Insert that to tree.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
---
 drivers/pci/iov.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index e873060..74bbaf8 100644
--- a/drivers/pci/iov.c
+++ b/drivers/pci/iov.c
@@ -47,7 +47,7 @@  static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr)
 	if (!child)
 		return NULL;
 
-	child->busn_res.end = busnr;
+	pci_bus_insert_busn_res(child, busnr, busnr);
 	child->dev.parent = bus->bridge;
 	rc = pci_bus_add_child(child);
 	if (rc) {