| Submitter | Wan ZongShun |
|---|---|
| Date | June 5, 2010, 9:10 a.m. |
| Message ID | <4C0A146B.1060306@gmail.com> |
| Download | mbox | patch |
| Permalink | /patch/54743/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c index d8ae634..b5bb1a4 100644 --- a/drivers/mtd/maps/pxa2xx-flash.c +++ b/drivers/mtd/maps/pxa2xx-flash.c @@ -70,7 +70,7 @@ static int __devinit pxa2xx_flash_probe(struct platform_device *pdev) info->map.name = (char *) flash->name; info->map.bankwidth = flash->width; info->map.phys = res->start; - info->map.size = res->end - res->start + 1; + info->map.size = resource_size(res); info->parts = flash->parts; info->nr_parts = flash->nr_parts;