diff options
Diffstat (limited to 'arch/avr32/kernel/module.c')
-rw-r--r-- | arch/avr32/kernel/module.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/avr32/kernel/module.c b/arch/avr32/kernel/module.c index b599eae64576..1167fe9cf6c4 100644 --- a/arch/avr32/kernel/module.c +++ b/arch/avr32/kernel/module.c | |||
@@ -12,10 +12,11 @@ | |||
12 | * published by the Free Software Foundation. | 12 | * published by the Free Software Foundation. |
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <linux/moduleloader.h> | 15 | #include <linux/bug.h> |
16 | #include <linux/module.h> | ||
17 | #include <linux/kernel.h> | ||
18 | #include <linux/elf.h> | 16 | #include <linux/elf.h> |
17 | #include <linux/kernel.h> | ||
18 | #include <linux/module.h> | ||
19 | #include <linux/moduleloader.h> | ||
19 | #include <linux/vmalloc.h> | 20 | #include <linux/vmalloc.h> |
20 | 21 | ||
21 | void *module_alloc(unsigned long size) | 22 | void *module_alloc(unsigned long size) |
@@ -315,10 +316,10 @@ int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, | |||
315 | vfree(module->arch.syminfo); | 316 | vfree(module->arch.syminfo); |
316 | module->arch.syminfo = NULL; | 317 | module->arch.syminfo = NULL; |
317 | 318 | ||
318 | return 0; | 319 | return module_bug_finalize(hdr, sechdrs, module); |
319 | } | 320 | } |
320 | 321 | ||
321 | void module_arch_cleanup(struct module *module) | 322 | void module_arch_cleanup(struct module *module) |
322 | { | 323 | { |
323 | 324 | module_bug_cleanup(module); | |
324 | } | 325 | } |