aboutsummaryrefslogtreecommitdiffstats
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,
76 76
77 BUG_ON(addr >= end); 77 BUG_ON(addr >= end);
78 78
79 flush_cache_all();
80
81 start = addr; 79 start = addr;
82 phys_addr -= addr; 80 phys_addr -= addr;
83 pgd = pgd_offset_k(addr); 81 pgd = pgd_offset_k(addr);
@@ -88,7 +86,7 @@ int ioremap_page_range(unsigned long addr,
88 break; 86 break;
89 } while (pgd++, addr = next, addr != end); 87 } while (pgd++, addr = next, addr != end);
90 88
91 flush_tlb_all(); 89 flush_cache_vmap(start, end);
92 90
93 return err; 91 return err;
94} 92}