|
@@ -183,18 +183,16 @@ static int __init pcibios_assign_resources(void)
|
|
|
struct pci_dev *dev = NULL;
|
|
|
struct resource *r;
|
|
|
|
|
|
- if (!(pci_probe & PCI_ASSIGN_ROMS)) {
|
|
|
- /* Try to use BIOS settings for ROMs, otherwise let
|
|
|
- pci_assign_unassigned_resources() allocate the new
|
|
|
- addresses. */
|
|
|
- for_each_pci_dev(dev) {
|
|
|
- r = &dev->resource[PCI_ROM_RESOURCE];
|
|
|
- if (!r->flags || !r->start)
|
|
|
- continue;
|
|
|
- if (pci_claim_resource(dev, PCI_ROM_RESOURCE) < 0) {
|
|
|
- r->end -= r->start;
|
|
|
- r->start = 0;
|
|
|
- }
|
|
|
+ /* Try to use BIOS settings for ROMs, otherwise let
|
|
|
+ pci_assign_unassigned_resources() allocate the new
|
|
|
+ addresses. */
|
|
|
+ for_each_pci_dev(dev) {
|
|
|
+ r = &dev->resource[PCI_ROM_RESOURCE];
|
|
|
+ if (!r->flags || !r->start)
|
|
|
+ continue;
|
|
|
+ if (pci_claim_resource(dev, PCI_ROM_RESOURCE) < 0) {
|
|
|
+ r->end -= r->start;
|
|
|
+ r->start = 0;
|
|
|
}
|
|
|
}
|
|
|
|