diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2009-12-14 14:11:56 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 21:11:11 +0800 |
commit | e8e3f6ca12d95181ce4718bcb4865c1913eac983 (patch) | |
tree | 21c969e9a8781aaa77eb02528fe0bf9d64110a71 /drivers | |
parent | af2a85fd9a4be83469a00f257563dfb77b9daad0 (diff) | |
download | linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.gz linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.bz2 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')
-rw-r--r-- | drivers/mmc/host/atmel-mci.c | 2 |
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; |