diff options
author | Ishizaki Kou <kou.ishizaki@toshiba.co.jp> | 2007-07-26 06:02:27 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-16 21:01:50 -0400 |
commit | a4ebd0174724193cbabf989352702ff37b1eb060 (patch) | |
tree | a245c14f1cfebb2e259f851c4e151fe2e86a21dc /arch/powerpc/platforms/celleb/setup.c | |
parent | b090b3388b6ea5d1003260daa0a997f4a1c4acc5 (diff) |
[POWERPC] Init markings for celleb
There are some variables and functions that we should place in init
section. And this patch changes some '__devinit' to '__init', because
the device is platform device and not hot-pluggable.
Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/celleb/setup.c')
-rw-r--r-- | arch/powerpc/platforms/celleb/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/celleb/setup.c b/arch/powerpc/platforms/celleb/setup.c index 5e9f7f163571..1fca3f23533b 100644 --- a/arch/powerpc/platforms/celleb/setup.c +++ b/arch/powerpc/platforms/celleb/setup.c | |||
@@ -73,7 +73,7 @@ static void celleb_show_cpuinfo(struct seq_file *m) | |||
73 | of_node_put(root); | 73 | of_node_put(root); |
74 | } | 74 | } |
75 | 75 | ||
76 | static int celleb_machine_type_hack(char *ptr) | 76 | static int __init celleb_machine_type_hack(char *ptr) |
77 | { | 77 | { |
78 | strncpy(celleb_machine_type, ptr, sizeof(celleb_machine_type)); | 78 | strncpy(celleb_machine_type, ptr, sizeof(celleb_machine_type)); |
79 | celleb_machine_type[sizeof(celleb_machine_type)-1] = 0; | 79 | celleb_machine_type[sizeof(celleb_machine_type)-1] = 0; |
@@ -135,7 +135,7 @@ static void celleb_kexec_cpu_down(int crash, int secondary) | |||
135 | } | 135 | } |
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | static struct of_device_id celleb_bus_ids[] = { | 138 | static struct of_device_id celleb_bus_ids[] __initdata = { |
139 | { .type = "scc", }, | 139 | { .type = "scc", }, |
140 | { .type = "ioif", }, /* old style */ | 140 | { .type = "ioif", }, /* old style */ |
141 | {}, | 141 | {}, |