]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: register busn_res for iov bus
authorYinghai Lu <yinghai@kernel.org>
Fri, 18 May 2012 01:51:13 +0000 (18:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Jun 2012 21:42:25 +0000 (15:42 -0600)
Insert that to tree.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/iov.c

index e873060fb35b8d1026c8eee2a63416124d12850b..74bbaf82638d9062817c4c7a1b872f506423f1ab 100644 (file)
@@ -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) {