mtd: drivers/mtd/nand/s3c2410.c: use resource_size()
Use resource_size(). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
committed by
David Woodhouse
parent
e99030609e
commit
fc161c4e8e
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user