提交 fc161c4e 编写于 作者: H H Hartley Sweeten 提交者: David Woodhouse

mtd: drivers/mtd/nand/s3c2410.c: use resource_size()

Use resource_size().
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 e9903060
......@@ -957,7 +957,7 @@ static int s3c24xx_nand_probe(struct platform_device *pdev)
/* currently we assume we have the one resource */
res = pdev->resource;
size = res->end - res->start + 1;
size = resource_size(res);
info->area = request_mem_region(res->start, size, pdev->name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册