From: Paul Mundt Date: Mon, 4 Aug 2008 04:32:04 +0000 (+0900) Subject: sh: Fix up __bug_table handling in module loader. X-Git-Tag: v2.6.27-rc2~42^2~9 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3108cf061228c2c2951006c80fb6fe832000adda;p=linux-2.6-omap-h63xx.git sh: Fix up __bug_table handling in module loader. We should be calling in to the lib/bug.c module helpers, fix that up. Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c index 5482e65375a..6ba2b79b826 100644 --- a/arch/sh/kernel/module.c +++ b/arch/sh/kernel/module.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -145,9 +146,10 @@ int module_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, struct module *me) { - return 0; + return module_bug_finalize(hdr, sechdrs, me); } void module_arch_cleanup(struct module *mod) { + module_bug_cleanup(mod); }