|
@@ -177,6 +177,7 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
|
|
end = res->end;
|
|
end = res->end;
|
|
res->start = fw_addr;
|
|
res->start = fw_addr;
|
|
res->end = res->start + size - 1;
|
|
res->end = res->start + size - 1;
|
|
|
|
+ res->flags &= ~IORESOURCE_UNSET;
|
|
|
|
|
|
root = pci_find_parent_resource(dev, res);
|
|
root = pci_find_parent_resource(dev, res);
|
|
if (!root) {
|
|
if (!root) {
|
|
@@ -194,6 +195,7 @@ static int pci_revert_fw_address(struct resource *res, struct pci_dev *dev,
|
|
resno, res, conflict->name, conflict);
|
|
resno, res, conflict->name, conflict);
|
|
res->start = start;
|
|
res->start = start;
|
|
res->end = end;
|
|
res->end = end;
|
|
|
|
+ res->flags |= IORESOURCE_UNSET;
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
}
|
|
}
|
|
return 0;
|
|
return 0;
|