aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/sh_flctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index 02bef21f2e4b..4260ab78f95c 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -797,7 +797,7 @@ static int __init flctl_probe(struct platform_device *pdev)
797 goto err; 797 goto err;
798 } 798 }
799 799
800 flctl->reg = ioremap(res->start, res->end - res->start + 1); 800 flctl->reg = ioremap(res->start, resource_size(res));
801 if (flctl->reg == NULL) { 801 if (flctl->reg == NULL) {
802 printk(KERN_ERR "%s: ioremap error.\n", __func__); 802 printk(KERN_ERR "%s: ioremap error.\n", __func__);
803 ret = -ENOMEM; 803 ret = -ENOMEM;