diff options
Diffstat (limited to 'drivers/pci/setup-res.c')
| -rw-r--r-- | drivers/pci/setup-res.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 5598b4714f77..50d6685dcbcc 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | #include "pci.h" | 26 | #include "pci.h" |
| 27 | 27 | ||
| 28 | 28 | ||
| 29 | static void | 29 | void |
| 30 | pci_update_resource(struct pci_dev *dev, struct resource *res, int resno) | 30 | pci_update_resource(struct pci_dev *dev, struct resource *res, int resno) |
| 31 | { | 31 | { |
| 32 | struct pci_bus_region region; | 32 | struct pci_bus_region region; |
| @@ -97,10 +97,7 @@ pci_claim_resource(struct pci_dev *dev, int resource) | |||
| 97 | char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge"; | 97 | char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge"; |
| 98 | int err; | 98 | int err; |
| 99 | 99 | ||
| 100 | if (res->flags & IORESOURCE_IO) | 100 | root = pcibios_select_root(dev, res); |
| 101 | root = &ioport_resource; | ||
| 102 | if (res->flags & IORESOURCE_MEM) | ||
| 103 | root = &iomem_resource; | ||
| 104 | 101 | ||
| 105 | err = -EINVAL; | 102 | err = -EINVAL; |
| 106 | if (root != NULL) | 103 | if (root != NULL) |
