diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-11-04 12:58:52 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-11-04 12:58:52 +0000 |
commit | 05efcf697552f37a5a59c3b839c7d0945af0fbe3 (patch) | |
tree | 88af55d2bd2d51bcbb31f312aa9a2061dcfcf644 /target/linux/adm5120/files/drivers | |
parent | db87e1f8c14fcdc6ea0da199f8e9dd1b7209c102 (diff) | |
download | upstream-05efcf697552f37a5a59c3b839c7d0945af0fbe3.tar.gz upstream-05efcf697552f37a5a59c3b839c7d0945af0fbe3.tar.bz2 upstream-05efcf697552f37a5a59c3b839c7d0945af0fbe3.zip |
fix flash driver fixes, call request_mem_region/ioremap_nocache with the correct arguments
SVN-Revision: 9496
Diffstat (limited to 'target/linux/adm5120/files/drivers')
-rw-r--r-- | target/linux/adm5120/files/drivers/mtd/maps/adm5120-flash.c | 5 |
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; |