From: Yinghai Lu Date: Fri, 18 May 2012 01:51:13 +0000 (-0700) Subject: PCI: register busn_res for iov bus X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b7eac055c0a8f6026393a83cdf9699e9052eae25;p=linux-beck.git PCI: register busn_res for iov bus Insert that to tree. Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas --- diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index e873060fb35b..74bbaf82638d 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) {