aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2009-12-14 14:28:06 -0500
committerChris Ball <cjb@laptop.org>2010-10-23 09:11:11 -0400
commit7a5ea56abc493fd43fb8d5b2f55d18396ec048f1 (patch)
tree729c042b15ddaa14b3087784d88c17c222ca2127 /drivers/mmc
parente8e3f6ca12d95181ce4718bcb4865c1913eac983 (diff)
mmc: au1xmmc.c: use resource_size()
[cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: <linux-mmc@vger.kernel.org> Acked-by: Manuel Lauss <manuel.lauss@gmail.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/au1xmmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c
index c8da5d30a861..e14b866b270f 100644
--- a/drivers/mmc/host/au1xmmc.c
+++ b/drivers/mmc/host/au1xmmc.c
@@ -964,7 +964,7 @@ static int __devinit au1xmmc_probe(struct platform_device *pdev)
964 goto out1; 964 goto out1;
965 } 965 }
966 966
967 host->ioarea = request_mem_region(r->start, r->end - r->start + 1, 967 host->ioarea = request_mem_region(r->start, resource_size(r),
968 pdev->name); 968 pdev->name);
969 if (!host->ioarea) { 969 if (!host->ioarea) {
970 dev_err(&pdev->dev, "mmio already in use\n"); 970 dev_err(&pdev->dev, "mmio already in use\n");