diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2009-07-17 11:47:37 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-09-04 04:37:34 -0400 |
commit | 76d6a4791609e4d14b411a513c7648b19b258d8f (patch) | |
tree | a4ad122fa6a3525b3eedce0cdcf694385e7aa7bb /drivers | |
parent | 2763c508a3c8f8ec5d6df4e8c63d5e2a5a7d3954 (diff) |
mtd: plat-ram: use resource_size
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/maps/plat-ram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c index 49c9ece76477..dafb91944e70 100644 --- a/drivers/mtd/maps/plat-ram.c +++ b/drivers/mtd/maps/plat-ram.c | |||
@@ -175,7 +175,7 @@ static int platram_probe(struct platform_device *pdev) | |||
175 | /* setup map parameters */ | 175 | /* setup map parameters */ |
176 | 176 | ||
177 | info->map.phys = res->start; | 177 | info->map.phys = res->start; |
178 | info->map.size = (res->end - res->start) + 1; | 178 | info->map.size = resource_size(res); |
179 | info->map.name = pdata->mapname != NULL ? | 179 | info->map.name = pdata->mapname != NULL ? |
180 | (char *)pdata->mapname : (char *)pdev->name; | 180 | (char *)pdata->mapname : (char *)pdev->name; |
181 | info->map.bankwidth = pdata->bankwidth; | 181 | info->map.bankwidth = pdata->bankwidth; |