From 05efcf697552f37a5a59c3b839c7d0945af0fbe3 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 4 Nov 2007 12:58:52 +0000 Subject: fix flash driver fixes, call request_mem_region/ioremap_nocache with the correct arguments SVN-Revision: 9496 --- target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'target/linux/adm5120') diff --git a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c index 20f67d625f..824d2f5e8e 100644 --- a/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c +++ b/target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c @@ -220,14 +220,15 @@ static int adm5120_flash_initres(struct adm5120_flash_info *info) struct map_info *map = &info->amap.map; int err = 0; - info->res = request_mem_region(map->phys, map->size, map->name); + info->res = request_mem_region(map->phys, info->amap.window_size, + map->name); if (info->res == NULL) { MAP_ERR(map, "could not reserve memory region\n"); err = -ENOMEM; goto out; } - map->virt = ioremap_nocache(map->phys, map->size); + map->virt = ioremap_nocache(map->phys, info->amap.window_size); if (map->virt == NULL) { MAP_ERR(map, "failed to ioremap flash region\n"); err = -ENOMEM; -- cgit v1.2.3