mmc: atmel-mci.c: use resource_size()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Dec 2009 19:11:56 +0000 (14:11 -0500)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:11 +0000 (21:11 +0800)
[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>
drivers/mmc/host/atmel-mci.c

index 95ef864ad8f9f13e73bbb04c64f966e02a772672..1d4e5464ea2fed76855dccc8cd858220e7d86718 100644 (file)
@@ -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;