diff options
| -rw-r--r-- | drivers/pci/setup-res.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/setup-res.c b/drivers/pci/setup-res.c index 3039fcb86afc..12403516776a 100644 --- a/drivers/pci/setup-res.c +++ b/drivers/pci/setup-res.c | |||
| @@ -99,11 +99,11 @@ void pci_update_resource(struct pci_dev *dev, int resno) | |||
| 99 | int pci_claim_resource(struct pci_dev *dev, int resource) | 99 | int pci_claim_resource(struct pci_dev *dev, int resource) |
| 100 | { | 100 | { |
| 101 | struct resource *res = &dev->resource[resource]; | 101 | struct resource *res = &dev->resource[resource]; |
| 102 | struct resource *root = NULL; | 102 | struct resource *root; |
| 103 | char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge"; | 103 | char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge"; |
| 104 | int err; | 104 | int err; |
| 105 | 105 | ||
| 106 | root = pcibios_select_root(dev, res); | 106 | root = pci_find_parent_resource(dev, res); |
| 107 | 107 | ||
| 108 | err = -EINVAL; | 108 | err = -EINVAL; |
| 109 | if (root != NULL) | 109 | if (root != NULL) |
