diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2009-12-14 19:11:56 (GMT) |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-10-23 13:11:11 (GMT) |
commit | e8e3f6ca12d95181ce4718bcb4865c1913eac983 (patch) | |
tree | 21c969e9a8781aaa77eb02528fe0bf9d64110a71 /drivers/mmc | |
parent | af2a85fd9a4be83469a00f257563dfb77b9daad0 (diff) | |
download | linux-e8e3f6ca12d95181ce4718bcb4865c1913eac983.tar.xz |
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')
-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 95ef864..1d4e546 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; |