Skip to content

Commit

Permalink
sh: Convert remaining remap_area_pages() users to ioremap_page_range().
Browse files Browse the repository at this point in the history
A couple of these were missed.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Dec 11, 2006
1 parent 79890c5 commit 37bda1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions arch/sh/kernel/cpu/sh4/sq.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ static int __sq_remap(struct sq_mapping *map, unsigned long flags)

vma->phys_addr = map->addr;

if (remap_area_pages((unsigned long)vma->addr, vma->phys_addr,
map->size, flags)) {
if (ioremap_page_range((unsigned long)vma->addr,
(unsigned long)vma->addr + map->size,
vma->phys_addr, __pgprot(flags))) {
vunmap(vma->addr);
return -EAGAIN;
}
Expand Down Expand Up @@ -176,7 +177,7 @@ unsigned long sq_remap(unsigned long phys, unsigned int size,

map->sq_addr = P4SEG_STORE_QUE + (page << PAGE_SHIFT);

ret = __sq_remap(map, flags);
ret = __sq_remap(map, pgprot_val(PAGE_KERNEL_NOCACHE) | flags);
if (unlikely(ret != 0))
goto out;

Expand Down
2 changes: 1 addition & 1 deletion arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void __init p3_cache_init(void)

emit_cache_params();

if (remap_area_pages(P3SEG, 0, PAGE_SIZE * 4, _PAGE_CACHABLE))
if (ioremap_page_range(P3SEG, P3SEG + (PAGE_SIZE * 4), 0, PAGE_KERNEL))
panic("%s failed.", __FUNCTION__);

for (i = 0; i < cpu_data->dcache.n_aliases; i++)
Expand Down

0 comments on commit 37bda1d

Please sign in to comment.