diff options
Diffstat (limited to 'drivers/pci/setup-res.c')
-rw-r--r-- | drivers/pci/setup-res.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 362f93337a34..50d6685dcbcc 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c | |||
@@ -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) |