aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/ecam.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/ecam.c')
-rw-r--r--drivers/pci/ecam.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/ecam.c b/drivers/pci/ecam.c
index 2fee61bb6559..c228a2eb7faa 100644
--- a/drivers/pci/ecam.c
+++ b/drivers/pci/ecam.c
@@ -84,12 +84,14 @@ struct pci_config_window *pci_ecam_create(struct device *dev,
84 if (!cfg->winp) 84 if (!cfg->winp)
85 goto err_exit_malloc; 85 goto err_exit_malloc;
86 for (i = 0; i < bus_range; i++) { 86 for (i = 0; i < bus_range; i++) {
87 cfg->winp[i] = ioremap(cfgres->start + i * bsz, bsz); 87 cfg->winp[i] =
88 pci_remap_cfgspace(cfgres->start + i * bsz,
89 bsz);
88 if (!cfg->winp[i]) 90 if (!cfg->winp[i])
89 goto err_exit_iomap; 91 goto err_exit_iomap;
90 } 92 }
91 } else { 93 } else {
92 cfg->win = ioremap(cfgres->start, bus_range * bsz); 94 cfg->win = pci_remap_cfgspace(cfgres->start, bus_range * bsz);
93 if (!cfg->win) 95 if (!cfg->win)
94 goto err_exit_iomap; 96 goto err_exit_iomap;
95 } 97 }