]> err.no Git - linux-2.6/blobdiff - drivers/pci/setup-res.c
[PATCH] pciehp: fix handling of power faults during hotplug
[linux-2.6] / drivers / pci / setup-res.c
index 362f93337a34023c55b4bb517818c558c1e60ac1..50d6685dcbcce801682c9600a81be2a98f90f8a1 100644 (file)
@@ -97,10 +97,7 @@ pci_claim_resource(struct pci_dev *dev, int resource)
        char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge";
        int err;
 
-       if (res->flags & IORESOURCE_IO)
-               root = &ioport_resource;
-       if (res->flags & IORESOURCE_MEM)
-               root = &iomem_resource;
+       root = pcibios_select_root(dev, res);
 
        err = -EINVAL;
        if (root != NULL)