Commit e8e3f6ca authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Chris Ball

mmc: atmel-mci.c: use resource_size()

[cjb: rebased patch against Linus]
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent af2a85fd
......@@ -1777,7 +1777,7 @@ static int __init atmci_probe(struct platform_device *pdev)
}
ret = -ENOMEM;
host->regs = ioremap(regs->start, regs->end - regs->start + 1);
host->regs = ioremap(regs->start, resource_size(regs));
if (!host->regs)
goto err_ioremap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment