diff options
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 79be37a53397..00ba6a03dca5 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -264,8 +264,10 @@ void __devinit pci_read_bridge_bases(struct pci_bus *child) | |||
264 | 264 | ||
265 | if (base <= limit) { | 265 | if (base <= limit) { |
266 | res->flags = (io_base_lo & PCI_IO_RANGE_TYPE_MASK) | IORESOURCE_IO; | 266 | res->flags = (io_base_lo & PCI_IO_RANGE_TYPE_MASK) | IORESOURCE_IO; |
267 | res->start = base; | 267 | if (!res->start) |
268 | res->end = limit + 0xfff; | 268 | res->start = base; |
269 | if (!res->end) | ||
270 | res->end = limit + 0xfff; | ||
269 | } | 271 | } |
270 | 272 | ||
271 | res = child->resource[1]; | 273 | res = child->resource[1]; |