mmc: atmel-mci.c: use resource_size()
[cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
af2a85fd9a
commit
e8e3f6ca12
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue