From 7a5ea56abc493fd43fb8d5b2f55d18396ec048f1 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 14 Dec 2009 14:28:06 -0500 Subject: [PATCH] mmc: au1xmmc.c: use resource_size() [cjb: rebased patch against Linus] Signed-off-by: H Hartley Sweeten Cc: Acked-by: Manuel Lauss Signed-off-by: Andrew Morton Signed-off-by: Chris Ball --- drivers/mmc/host/au1xmmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/au1xmmc.c b/drivers/mmc/host/au1xmmc.c index c8da5d30a86..e14b866b270 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) goto out1; } - host->ioarea = request_mem_region(r->start, r->end - r->start + 1, + host->ioarea = request_mem_region(r->start, resource_size(r), pdev->name); if (!host->ioarea) { dev_err(&pdev->dev, "mmio already in use\n"); -- 2.20.1