Skip to content

Commit

Permalink
mtd: plat-ram: use resource_size
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Wolfram Sang authored and David Woodhouse committed Sep 4, 2009
1 parent 2763c50 commit 76d6a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/plat-ram.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static int platram_probe(struct platform_device *pdev)
/* setup map parameters */

info->map.phys = res->start;
info->map.size = (res->end - res->start) + 1;
info->map.size = resource_size(res);
info->map.name = pdata->mapname != NULL ?
(char *)pdata->mapname : (char *)pdev->name;
info->map.bankwidth = pdata->bankwidth;
Expand Down

0 comments on commit 76d6a47

Please sign in to comment.