aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/celleb/setup.c
diff options
context:
space:
mode:
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>2007-07-26 20:02:27 +1000
committerPaul Mackerras <paulus@samba.org>2007-08-17 11:01:50 +1000
commita4ebd0174724193cbabf989352702ff37b1eb060 (patch)
treea245c14f1cfebb2e259f851c4e151fe2e86a21dc /arch/powerpc/platforms/celleb/setup.c
parentb090b3388b6ea5d1003260daa0a997f4a1c4acc5 (diff)
downloadkernel_samsung_smdk4412-a4ebd0174724193cbabf989352702ff37b1eb060.tar.gz
kernel_samsung_smdk4412-a4ebd0174724193cbabf989352702ff37b1eb060.tar.bz2
kernel_samsung_smdk4412-a4ebd0174724193cbabf989352702ff37b1eb060.zip
[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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/celleb/setup.c b/arch/powerpc/platforms/celleb/setup.c
index 5e9f7f16357..1fca3f23533 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)
of_node_put(root);
}
-static int celleb_machine_type_hack(char *ptr)
+static int __init celleb_machine_type_hack(char *ptr)
{
strncpy(celleb_machine_type, ptr, sizeof(celleb_machine_type));
celleb_machine_type[sizeof(celleb_machine_type)-1] = 0;
@@ -135,7 +135,7 @@ static void celleb_kexec_cpu_down(int crash, int secondary)
}
#endif
-static struct of_device_id celleb_bus_ids[] = {
+static struct of_device_id celleb_bus_ids[] __initdata = {
{ .type = "scc", },
{ .type = "ioif", }, /* old style */
{},