mmc: au1xmmc.c: use resource_size()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 14 Dec 2009 19:28:06 +0000 (14:28 -0500)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:11 +0000 (21:11 +0800)
[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>
drivers/mmc/host/au1xmmc.c

index c8da5d30a861b5b7a294945f59aae0d80968c128..e14b866b270f5ba89f2c9ad63c723b54f8cb25fa 100644 (file)
@@ -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");