aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r--drivers/pci/setup-bus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index f7cb8e0758b4..5cf84568c9e4 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -65,6 +65,7 @@ static void pbus_assign_resources_sorted(struct pci_bus *bus)
65 res = list->res; 65 res = list->res;
66 idx = res - &list->dev->resource[0]; 66 idx = res - &list->dev->resource[0];
67 if (pci_assign_resource(list->dev, idx)) { 67 if (pci_assign_resource(list->dev, idx)) {
68 /* FIXME: get rid of this */
68 res->start = 0; 69 res->start = 0;
69 res->end = 0; 70 res->end = 0;
70 res->flags = 0; 71 res->flags = 0;
@@ -327,6 +328,7 @@ static void pbus_size_io(struct pci_bus *bus)
327 /* Alignment of the IO window is always 4K */ 328 /* Alignment of the IO window is always 4K */
328 b_res->start = 4096; 329 b_res->start = 4096;
329 b_res->end = b_res->start + size - 1; 330 b_res->end = b_res->start + size - 1;
331 b_res->flags |= IORESOURCE_STARTALIGN;
330} 332}
331 333
332/* Calculate the size of the bus and minimal alignment which 334/* Calculate the size of the bus and minimal alignment which
@@ -401,6 +403,7 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, unsigned long
401 } 403 }
402 b_res->start = min_align; 404 b_res->start = min_align;
403 b_res->end = size + min_align - 1; 405 b_res->end = size + min_align - 1;
406 b_res->flags |= IORESOURCE_STARTALIGN;
404 return 1; 407 return 1;
405} 408}
406 409