aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/davinci_nand.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/nand/davinci_nand.c')
-rw-r--r--drivers/mtd/nand/davinci_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/davinci_nand.c b/drivers/mtd/nand/davinci_nand.c
index fe3eba87de40..e2eeaf1e51a3 100644
--- a/drivers/mtd/nand/davinci_nand.c
+++ b/drivers/mtd/nand/davinci_nand.c
@@ -566,8 +566,8 @@ static int __init nand_davinci_probe(struct platform_device *pdev)
566 goto err_nomem; 566 goto err_nomem;
567 } 567 }
568 568
569 vaddr = ioremap(res1->start, res1->end - res1->start); 569 vaddr = ioremap(res1->start, resource_size(res1));
570 base = ioremap(res2->start, res2->end - res2->start); 570 base = ioremap(res2->start, resource_size(res2));
571 if (!vaddr || !base) { 571 if (!vaddr || !base) {
572 dev_err(&pdev->dev, "ioremap failed\n"); 572 dev_err(&pdev->dev, "ioremap failed\n");
573 ret = -EINVAL; 573 ret = -EINVAL;