summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-05-17 18:51:13 -0700
committerBjorn Helgaas <bhelgaas@google.com>2012-06-13 15:42:25 -0600
commitb7eac055c0a8f6026393a83cdf9699e9052eae25 (patch)
tree1b2ae2cd83314cbaf3c2346635cd0bb2cc0c21f6
parentb17c0e6f665023ae729ca112516c7b6f3b71f9d3 (diff)
PCI: register busn_res for iov bus
Insert that to tree. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r--drivers/pci/iov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c
index e873060fb35..74bbaf82638 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) {