summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-08-04 13:32:04 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-08-04 13:32:04 +0900
commit3108cf061228c2c2951006c80fb6fe832000adda (patch)
treedbd4c197bf3b8169ca54cede971bb4c15e68d4d8 /arch
parentb5ed042249cb5f76a428aa40ca219d591dad9eea (diff)
downloadop-kernel-dev-3108cf061228c2c2951006c80fb6fe832000adda.zip
op-kernel-dev-3108cf061228c2c2951006c80fb6fe832000adda.tar.gz
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 <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/kernel/module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sh/kernel/module.c b/arch/sh/kernel/module.c
index 5482e65..6ba2b79 100644
--- a/arch/sh/kernel/module.c
+++ b/arch/sh/kernel/module.c
@@ -27,6 +27,7 @@
#include <linux/moduleloader.h>
#include <linux/elf.h>
#include <linux/vmalloc.h>
+#include <linux/bug.h>
#include <linux/fs.h>
#include <linux/string.h>
#include <linux/kernel.h>
@@ -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);
}
OpenPOWER on IntegriCloud