aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i82875p_edac.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edac/i82875p_edac.c')
-rw-r--r--drivers/edac/i82875p_edac.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index ebb037b78758..b2d83b95033d 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -311,9 +311,7 @@ static int i82875p_setup_overfl_dev(struct pci_dev *pdev,
311 } 311 }
312 312
313 /* cache is irrelevant for PCI bus reads/writes */ 313 /* cache is irrelevant for PCI bus reads/writes */
314 window = ioremap_nocache(pci_resource_start(dev, 0), 314 window = pci_ioremap_bar(dev, 0);
315 pci_resource_len(dev, 0));
316
317 if (window == NULL) { 315 if (window == NULL) {
318 i82875p_printk(KERN_ERR, "%s(): Failed to ioremap bar6\n", 316 i82875p_printk(KERN_ERR, "%s(): Failed to ioremap bar6\n",
319 __func__); 317 __func__);