From 49da084422af4ce33c4d0233d97ae00c923f223e Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sun, 4 Nov 2007 12:58:52 +0000 Subject: [PATCH] [adm5120] 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(-) 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; -- 2.30.2