summary refs log tree commit diff
path: root/drivers/mmc/host/atmel-mci.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2009-12-14 14:11:56 -0500
committerChris Ball <cjb@laptop.org>2010-10-23 21:11:11 +0800
commite8e3f6ca12d95181ce4718bcb4865c1913eac983 (patch)
tree21c969e9a8781aaa77eb02528fe0bf9d64110a71 /drivers/mmc/host/atmel-mci.c
parentaf2a85fd9a4be83469a00f257563dfb77b9daad0 (diff)
downloadlinux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.gz
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>
Diffstat (limited to 'drivers/mmc/host/atmel-mci.c')
-rw-r--r--drivers/mmc/host/atmel-mci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 95ef864ad8f9..1d4e5464ea2f 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;