summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/atmel-mci.c
diff options
context:
space:
mode:
authorH Hartley Sweeten2009-12-14 20:11:56 +0100
committerChris Ball2010-10-23 15:11:11 +0200
commite8e3f6ca12d95181ce4718bcb4865c1913eac983 (patch)
tree21c969e9a8781aaa77eb02528fe0bf9d64110a71 /drivers/mmc/host/atmel-mci.c
parentmmc: at91_mci.c: use resource_size() (diff)
downloadkernel-qcow2-linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.gz
kernel-qcow2-linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.xz
kernel-qcow2-linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.zip
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;