Commit c0f05807 authored by Russell King's avatar Russell King

[ARM] SA11x0 PCMCIA 8

Fix socket memory mapping bug - we need to take account of the
requested card offset when returning the address for ioremap. 
parent 33cdd9d7
...@@ -724,14 +724,13 @@ sa1100_pcmcia_set_mem_map(unsigned int sock, struct pccard_mem_map *map) ...@@ -724,14 +724,13 @@ sa1100_pcmcia_set_mem_map(unsigned int sock, struct pccard_mem_map *map)
} }
start = (map->flags & MAP_ATTRIB) ? skt->phys_attr : skt->phys_mem;
if (map->sys_stop == 0) if (map->sys_stop == 0)
map->sys_stop = PAGE_SIZE-1; map->sys_stop = PAGE_SIZE-1;
start = (map->flags & MAP_ATTRIB) ? skt->phys_attr : skt->phys_mem;
map->sys_stop -= map->sys_start; map->sys_stop -= map->sys_start;
map->sys_stop += start; map->sys_stop += start + map->card_start;
map->sys_start = start; map->sys_start = start + map->card_start;
skt->pc_mem_map[map->map] = *map; skt->pc_mem_map[map->map] = *map;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment