Merge branch 'master' of ../mmc
[pandora-kernel.git] / arch / powerpc / kernel / module.c
index af07003..43e7e3a 100644 (file)
@@ -78,6 +78,12 @@ int module_finalize(const Elf_Ehdr *hdr,
                                  (void *)sect->sh_addr,
                                  (void *)sect->sh_addr + sect->sh_size);
 
+       sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup");
+       if (sect != NULL)
+               do_feature_fixups(cur_cpu_spec->mmu_features,
+                                 (void *)sect->sh_addr,
+                                 (void *)sect->sh_addr + sect->sh_size);
+
 #ifdef CONFIG_PPC64
        sect = find_section(hdr, sechdrs, "__fw_ftr_fixup");
        if (sect != NULL)
@@ -99,18 +105,3 @@ void module_arch_cleanup(struct module *mod)
 {
        module_bug_cleanup(mod);
 }
-
-struct bug_entry *module_find_bug(unsigned long bugaddr)
-{
-       struct mod_arch_specific *mod;
-       unsigned int i;
-       struct bug_entry *bug;
-
-       list_for_each_entry(mod, &module_bug_list, bug_list) {
-               bug = mod->bug_table;
-               for (i = 0; i < mod->num_bugs; ++i, ++bug)
-                       if (bugaddr == bug->bug_addr)
-                               return bug;
-       }
-       return NULL;
-}