From: H Hartley Sweeten Date: Mon, 14 Dec 2009 21:56:22 +0000 (-0500) Subject: mtd: drivers/mtd/nand/s3c2410.c: use resource_size() X-Git-Tag: v2.6.35-rc1~465^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc161c4e8ec9b12d42b10d510a9de8562ea3afac;p=profile%2Fivi%2Fkernel-x86-ivi.git mtd: drivers/mtd/nand/s3c2410.c: use resource_size() Use resource_size(). Signed-off-by: H Hartley Sweeten Cc: Ben Dooks Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index fa6e9c7..c41ad22 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -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);