提交 7a5ea56a 编写于 作者: H H Hartley Sweeten 提交者: Chris Ball

mmc: au1xmmc.c: use resource_size()

[cjb: rebased patch against Linus]
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: <linux-mmc@vger.kernel.org>
Acked-by: NManuel Lauss <manuel.lauss@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NChris Ball <cjb@laptop.org>
上级 e8e3f6ca
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册