aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-11-04 12:58:52 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-11-04 12:58:52 +0000
commit26fa4a4bb9e0f8b7bcdf9f677afec1eec7c71e5e (patch)
tree154a39c130ecfbce4ed64dd1b0bfdfed2d1da3a1 /target/linux/adm5120/files
parent5e7effeb4f8c0e507490789961d2a5b23612793e (diff)
downloadupstream-26fa4a4bb9e0f8b7bcdf9f677afec1eec7c71e5e.tar.gz
upstream-26fa4a4bb9e0f8b7bcdf9f677afec1eec7c71e5e.tar.bz2
upstream-26fa4a4bb9e0f8b7bcdf9f677afec1eec7c71e5e.zip
[adm5120] fix flash driver fixes, call request_mem_region/ioremap_nocache with the correct arguments
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9496 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/files')
-rw-r--r--target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c5
1 files 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;