1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-10-01 09:33:14 +03:00

[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
This commit is contained in:
juhosg 2007-11-04 12:58:52 +00:00
parent 5c0b46f713
commit f54e89aeed

View File

@ -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;