diff options
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r-- | drivers/pci/probe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index c2e99fd87faf..33d9b8bea6e0 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -235,7 +235,7 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) | |||
235 | res->flags |= l & ~PCI_BASE_ADDRESS_IO_MASK; | 235 | res->flags |= l & ~PCI_BASE_ADDRESS_IO_MASK; |
236 | } | 236 | } |
237 | res->end = res->start + (unsigned long) sz; | 237 | res->end = res->start + (unsigned long) sz; |
238 | res->flags |= pci_calc_resource_flags(l); | 238 | res->flags |= pci_calc_resource_flags(l) | IORESOURCE_SIZEALIGN; |
239 | if (is_64bit_memory(l)) { | 239 | if (is_64bit_memory(l)) { |
240 | u32 szhi, lhi; | 240 | u32 szhi, lhi; |
241 | 241 | ||
@@ -288,7 +288,8 @@ static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) | |||
288 | if (sz) { | 288 | if (sz) { |
289 | res->flags = (l & IORESOURCE_ROM_ENABLE) | | 289 | res->flags = (l & IORESOURCE_ROM_ENABLE) | |
290 | IORESOURCE_MEM | IORESOURCE_PREFETCH | | 290 | IORESOURCE_MEM | IORESOURCE_PREFETCH | |
291 | IORESOURCE_READONLY | IORESOURCE_CACHEABLE; | 291 | IORESOURCE_READONLY | IORESOURCE_CACHEABLE | |
292 | IORESOURCE_SIZEALIGN; | ||
292 | res->start = l & PCI_ROM_ADDRESS_MASK; | 293 | res->start = l & PCI_ROM_ADDRESS_MASK; |
293 | res->end = res->start + (unsigned long) sz; | 294 | res->end = res->start + (unsigned long) sz; |
294 | } | 295 | } |