link = (reg >> 8) & 0x03;
 
                info = alloc_pci_root_info(min_bus, max_bus, node, link);
-               sprintf(info->name, "PCI Bus #%02x", min_bus);
        }
 
        /* get the default node and link for left over res */
                int busnum;
                struct pci_root_res *root_res;
 
-               busnum = info->bus_min;
-               printk(KERN_DEBUG "bus: [%02x, %02x] on node %x link %x\n",
-                      info->bus_min, info->bus_max, info->node, info->link);
+               busnum = info->busn.start;
+               printk(KERN_DEBUG "bus: %pR on node %x link %x\n",
+                      &info->busn, info->node, info->link);
                list_for_each_entry(root_res, &info->resources, list)
                        printk(KERN_DEBUG "bus: %02x %pR\n",
                                       busnum, &root_res->res);
 
                return NULL;
 
        list_for_each_entry(info, &pci_root_infos, list)
-               if (info->bus_min == bus)
+               if (info->busn.start == bus)
                        return info;
 
        return NULL;
 {
        struct pci_root_info *info = x86_find_pci_root_info(bus);
        struct pci_root_res *root_res;
+       struct pci_host_bridge_window *window;
+       bool found = false;
 
        if (!info)
                goto default_resources;
        printk(KERN_DEBUG "PCI: root bus %02x: hardware-probed resources\n",
               bus);
 
+       /* already added by acpi ? */
+       list_for_each_entry(window, resources, list)
+               if (window->res->flags & IORESOURCE_BUS) {
+                       found = true;
+                       break;
+               }
+
+       if (!found)
+               pci_add_resource(resources, &info->busn);
+
        list_for_each_entry(root_res, &info->resources, list) {
                struct resource *res;
                struct resource *root;
        if (!info)
                return info;
 
+       sprintf(info->name, "PCI Bus #%02x", bus_min);
+
        INIT_LIST_HEAD(&info->resources);
-       info->bus_min = bus_min;
-       info->bus_max = bus_max;
+       info->busn.name  = info->name;
+       info->busn.start = bus_min;
+       info->busn.end   = bus_max;
+       info->busn.flags = IORESOURCE_BUS;
        info->node = node;
        info->link = link;