Skip to content

Commit

Permalink
mtd: drivers/mtd/nand/sh_flctl.c: use resource_size()
Browse files Browse the repository at this point in the history
Use resource_size().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
H Hartley Sweeten authored and David Woodhouse committed Dec 31, 2009
1 parent 448791a commit cbd38a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/sh_flctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ static int __init flctl_probe(struct platform_device *pdev)
goto err;
}

flctl->reg = ioremap(res->start, res->end - res->start + 1);
flctl->reg = ioremap(res->start, resource_size(res));
if (flctl->reg == NULL) {
printk(KERN_ERR "%s: ioremap error.\n", __func__);
ret = -ENOMEM;
Expand Down

0 comments on commit cbd38a8

Please sign in to comment.