aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc/host/dw_mmc.c')
-rw-r--r--drivers/mmc/host/dw_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 66dcddb9c205..2a069f908b27 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1595,7 +1595,7 @@ static int dw_mci_probe(struct platform_device *pdev)
1595 INIT_LIST_HEAD(&host->queue); 1595 INIT_LIST_HEAD(&host->queue);
1596 1596
1597 ret = -ENOMEM; 1597 ret = -ENOMEM;
1598 host->regs = ioremap(regs->start, regs->end - regs->start + 1); 1598 host->regs = ioremap(regs->start, resource_size(regs));
1599 if (!host->regs) 1599 if (!host->regs)
1600 goto err_freehost; 1600 goto err_freehost;
1601 1601