OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2763c50
)
mtd: plat-ram: use resource_size
author
Wolfram Sang
<w.sang@pengutronix.de>
Fri, 17 Jul 2009 15:47:37 +0000
(17:47 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:37:34 +0000
(09:37 +0100)
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>
drivers/mtd/maps/plat-ram.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/maps/plat-ram.c
b/drivers/mtd/maps/plat-ram.c
index
49c9ece
..
dafb919
100644
(file)
--- 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)
/* 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;