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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index f7cb8e0758b4..f9b7bdd27829 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;
@@ -144,8 +145,7 @@ EXPORT_SYMBOL(pci_setup_cardbus);
144 config space writes, so it's quite possible that an I/O window of 145 config space writes, so it's quite possible that an I/O window of
145 the bridge will have some undesirable address (e.g. 0) after the 146 the bridge will have some undesirable address (e.g. 0) after the
146 first write. Ditto 64-bit prefetchable MMIO. */ 147 first write. Ditto 64-bit prefetchable MMIO. */
147static void __devinit 148static void pci_setup_bridge(struct pci_bus *bus)
148pci_setup_bridge(struct pci_bus *bus)
149{ 149{
150 struct pci_dev *bridge = bus->self; 150 struct pci_dev *bridge = bus->self;
151 struct pci_bus_region region; 151 struct pci_bus_region region;
@@ -327,6 +327,7 @@ static void pbus_size_io(struct pci_bus *bus)
327 /* Alignment of the IO window is always 4K */ 327 /* Alignment of the IO window is always 4K */
328 b_res->start = 4096; 328 b_res->start = 4096;
329 b_res->end = b_res->start + size - 1; 329 b_res->end = b_res->start + size - 1;
330 b_res->flags |= IORESOURCE_STARTALIGN;
330} 331}
331 332
332/* Calculate the size of the bus and minimal alignment which 333/* Calculate the size of the bus and minimal alignment which
@@ -401,11 +402,11 @@ static int pbus_size_mem(struct pci_bus *bus, unsigned long mask, unsigned long
401 } 402 }
402 b_res->start = min_align; 403 b_res->start = min_align;
403 b_res->end = size + min_align - 1; 404 b_res->end = size + min_align - 1;
405 b_res->flags |= IORESOURCE_STARTALIGN;
404 return 1; 406 return 1;
405} 407}
406 408
407static void __devinit 409static void pci_bus_size_cardbus(struct pci_bus *bus)
408pci_bus_size_cardbus(struct pci_bus *bus)
409{ 410{
410 struct pci_dev *bridge = bus->self; 411 struct pci_dev *bridge = bus->self;
411 struct resource *b_res = &bridge->resource[PCI_BRIDGE_RESOURCES]; 412 struct resource *b_res = &bridge->resource[PCI_BRIDGE_RESOURCES];