diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2009-12-14 16:56:22 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-12-31 15:47:22 -0500 |
commit | fc161c4e8ec9b12d42b10d510a9de8562ea3afac (patch) | |
tree | 5889d7b88b48aeef7cace5814543793a2f2dff43 /drivers/mtd/nand/s3c2410.c | |
parent | e99030609e27abff7e1a868cb56384c678b09984 (diff) |
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>
Diffstat (limited to 'drivers/mtd/nand/s3c2410.c')
-rw-r--r-- | drivers/mtd/nand/s3c2410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index fa6e9c7fe511..c41ad2285c63 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) | |||
957 | 957 | ||
958 | /* currently we assume we have the one resource */ | 958 | /* currently we assume we have the one resource */ |
959 | res = pdev->resource; | 959 | res = pdev->resource; |
960 | size = res->end - res->start + 1; | 960 | size = resource_size(res); |
961 | 961 | ||
962 | info->area = request_mem_region(res->start, size, pdev->name); | 962 | info->area = request_mem_region(res->start, size, pdev->name); |
963 | 963 | ||