Skip to content

Commit

Permalink
mmc: au1xmmc.c: use resource_size()
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
H Hartley Sweeten authored and Chris Ball committed Oct 23, 2010
1 parent e8e3f6c commit 7a5ea56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/au1xmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 7a5ea56

Please sign in to comment.