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 <[email protected]>
Cc: <[email protected]>
Acked-by: Manuel Lauss <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
bigguiness authored and cjb 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.