summaryrefslogtreecommitdiff
path: root/lib/ioremap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ioremap.c')
-rw-r--r--lib/ioremap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/ioremap.c b/lib/ioremap.c
index 29c810ec9813..99fa277f9f7b 100644
--- a/lib/ioremap.c
+++ b/lib/ioremap.c
@@ -76,8 +76,6 @@ int ioremap_page_range(unsigned long addr,
BUG_ON(addr >= end);
- flush_cache_all();
-
start = addr;
phys_addr -= addr;
pgd = pgd_offset_k(addr);
@@ -88,7 +86,7 @@ int ioremap_page_range(unsigned long addr,
break;
} while (pgd++, addr = next, addr != end);
- flush_tlb_all();
+ flush_cache_vmap(start, end);
return err;
}