X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=drivers%2Fpci%2Fsetup-res.c;h=50d6685dcbcce801682c9600a81be2a98f90f8a1;hb=f85272a97825d4a67098a8ad70fa5efb55e4847a;hp=5598b4714f77ac2efaf0f545e404b4c9163c4fcf;hpb=97c169a21bfb5bb2ab2bccd852da4f0d0e021c55;p=powerpc.git diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 5598b4714f..50d6685dcb 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c @@ -26,7 +26,7 @@ #include "pci.h" -static void +void pci_update_resource(struct pci_dev *dev, struct resource *res, int resno) { struct pci_bus_region region; @@ -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)