skge: default WOL should be magic only (rev2)
[powerpc.git] / lib / ioremap.c
index 29c810e..a9e4415 100644 (file)
@@ -5,7 +5,6 @@
  *
  * (C) Copyright 1995 1996 Linus Torvalds
  */
-#include <linux/io.h>
 #include <linux/vmalloc.h>
 #include <linux/mm.h>
 
@@ -76,8 +75,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 +85,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;
 }