Skip to content

Commit

Permalink
mtd: drivers/mtd/nand/s3c2410.c: use resource_size()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and David Woodhouse committed Dec 31, 2009
1 parent e990306 commit fc161c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fc161c4

Please sign in to comment.