PCI: insert busn_res in pci_create_root_bus()
authorYinghai Lu <yinghai@kernel.org>
Fri, 18 May 2012 01:51:12 +0000 (18:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Jun 2012 21:42:22 +0000 (15:42 -0600)
That busn_res is from resources list.

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

index 7662ab7b2640a5167ecc89bded0ef2adbb35ccd5..59011ce9840fc48b537315b49ca5f02fefd2ed95 100644 (file)
@@ -1684,7 +1684,10 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus,
                list_move_tail(&window->list, &bridge->windows);
                res = window->res;
                offset = window->offset;
-               pci_bus_add_resource(b, res, 0);
+               if (res->flags & IORESOURCE_BUS)
+                       pci_bus_insert_busn_res(b, bus, res->end);
+               else
+                       pci_bus_add_resource(b, res, 0);
                if (offset) {
                        if (resource_type(res) == IORESOURCE_IO)
                                fmt = " (bus address [%#06llx-%#06llx])";
This page took 0.026901 seconds and 5 git commands to generate.