diff options
author | Ishizaki Kou | 2007-07-26 12:02:27 +0200 |
---|---|---|
committer | Paul Mackerras | 2007-08-17 03:01:50 +0200 |
commit | a4ebd0174724193cbabf989352702ff37b1eb060 (patch) | |
tree | a245c14f1cfebb2e259f851c4e151fe2e86a21dc /arch/powerpc/platforms/celleb/scc_sio.c | |
parent | [POWERPC] Fix celleb sio section warning (diff) | |
download | kernel-qcow2-linux-a4ebd0174724193cbabf989352702ff37b1eb060.tar.gz kernel-qcow2-linux-a4ebd0174724193cbabf989352702ff37b1eb060.tar.xz kernel-qcow2-linux-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/scc_sio.c')
-rw-r--r-- | arch/powerpc/platforms/celleb/scc_sio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/celleb/scc_sio.c b/arch/powerpc/platforms/celleb/scc_sio.c index d219b60a4a8c..bb98735ac46f 100644 --- a/arch/powerpc/platforms/celleb/scc_sio.c +++ b/arch/powerpc/platforms/celleb/scc_sio.c @@ -28,12 +28,12 @@ /* sio irq0=0xb00010022 irq0=0xb00010023 irq2=0xb00010024 mmio=0xfff000-0x1000,0xff2000-0x1000 */ -static int txx9_serial_bitmap = 0; +static int txx9_serial_bitmap __initdata = 0; static struct { uint32_t offset; uint32_t index; -} txx9_scc_tab[3] = { +} txx9_scc_tab[3] __initdata = { { 0x300, 0 }, /* 0xFFF300 */ { 0x400, 0 }, /* 0xFFF400 */ { 0x800, 1 } /* 0xFF2800 */ @@ -79,7 +79,7 @@ static int __init txx9_serial_init(void) return 0; } -static int txx9_serial_config(char *ptr) +static int __init txx9_serial_config(char *ptr) { int i; |