microblaze: Fix module loading on system with WB cache
[sfrench/cifs-2.6.git] / arch / microblaze / kernel / module.c
index 5a45b1adfef1c91f25b191d968238c95854ee674..0e73f6606547ce03f1be8c048971b9de6275c3a0 100644 (file)
 #include <linux/kernel.h>
 #include <linux/elf.h>
 #include <linux/vmalloc.h>
-#include <linux/slab.h>
 #include <linux/fs.h>
 #include <linux/string.h>
 
 #include <asm/pgtable.h>
+#include <asm/cacheflush.h>
 
 void *module_alloc(unsigned long size)
 {
@@ -152,6 +152,7 @@ int apply_relocate_add(Elf32_Shdr *sechdrs, const char *strtab,
 int module_finalize(const Elf32_Ehdr *hdr, const Elf_Shdr *sechdrs,
                struct module *module)
 {
+       flush_dcache();
        return 0;
 }