summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/files/drivers/mtd
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-04 12:58:52 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-11-04 12:58:52 +0000
commitf54e89aeed92291ca7de8772e9f319e31759984a (patch)
tree154a39c130ecfbce4ed64dd1b0bfdfed2d1da3a1 /target/linux/adm5120/files/drivers/mtd
parent5c0b46f713c7496b80b67f638b62de6ced93e5c6 (diff)
[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/drivers/mtd')
-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 20f67d625..824d2f5e8 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;