From: H Hartley Sweeten Date: Mon, 14 Dec 2009 19:11:56 +0000 (-0500) Subject: mmc: atmel-mci.c: use resource_size() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e8e3f6ca12d95181ce4718bcb4865c1913eac983;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git mmc: atmel-mci.c: use resource_size() [cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten Cc: Signed-off-by: Nicolas Ferre Signed-off-by: Andrew Morton Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index 95ef864ad8f..1d4e5464ea2 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -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;