X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fpci%2Fsetup-res.c;h=50d6685dcbcce801682c9600a81be2a98f90f8a1;hb=28e0cf22c1221650b4bfba48808d966160c42320;hp=5598b4714f77ac2efaf0f545e404b4c9163c4fcf;hpb=70d374ea9907036e15574a5ce89219edd5baee10;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)