summaryrefslogtreecommitdiffstats
path: root/arch/m68k/apollo
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2013-06-25 21:15:24 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2013-11-26 11:08:54 +0100
commita4df02a217e9787a4b967197d9d9030c3e3c1088 (patch)
tree4f32cbd30553494fa55d1cf2ecf294265196dc69 /arch/m68k/apollo
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
downloadop-kernel-dev-a4df02a217e9787a4b967197d9d9030c3e3c1088.zip
op-kernel-dev-a4df02a217e9787a4b967197d9d9030c3e3c1088.tar.gz
m68k: Mark functions only called from setup_arch() __init
Some functions that are only called (indirectly) from setup_arch() lack __init annotations. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/apollo')
-rw-r--r--arch/m68k/apollo/config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/m68k/apollo/config.c b/arch/m68k/apollo/config.c
index 3ea56b9..2bdde96 100644
--- a/arch/m68k/apollo/config.c
+++ b/arch/m68k/apollo/config.c
@@ -1,3 +1,4 @@
+#include <linux/init.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/mm.h>
@@ -43,8 +44,8 @@ static const char *apollo_models[] = {
[APOLLO_DN4500-APOLLO_DN3000] = "DN4500 (Roadrunner)"
};
-int apollo_parse_bootinfo(const struct bi_record *record) {
-
+int __init apollo_parse_bootinfo(const struct bi_record *record)
+{
int unknown = 0;
const unsigned long *data = record->data;
@@ -60,9 +61,8 @@ int apollo_parse_bootinfo(const struct bi_record *record) {
return unknown;
}
-void dn_setup_model(void) {
-
-
+static void __init dn_setup_model(void)
+{
printk("Apollo hardware found: ");
printk("[%s]\n", apollo_models[apollo_model - APOLLO_DN3000]);
OpenPOWER on IntegriCloud