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 | |
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')
-rw-r--r-- | arch/powerpc/platforms/celleb/scc_epci.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/celleb/scc_sio.c | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/celleb/setup.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/platforms/celleb/scc_epci.c b/arch/powerpc/platforms/celleb/scc_epci.c index c4b011094bd6..881fd7d1806a 100644 --- a/arch/powerpc/platforms/celleb/scc_epci.c +++ b/arch/powerpc/platforms/celleb/scc_epci.c | |||
@@ -283,7 +283,7 @@ struct pci_ops celleb_epci_ops = { | |||
283 | }; | 283 | }; |
284 | 284 | ||
285 | /* to be moved in FW */ | 285 | /* to be moved in FW */ |
286 | static int __devinit celleb_epci_init(struct pci_controller *hose) | 286 | static int __init celleb_epci_init(struct pci_controller *hose) |
287 | { | 287 | { |
288 | u32 val; | 288 | u32 val; |
289 | volatile void __iomem *reg, *epci_base; | 289 | volatile void __iomem *reg, *epci_base; |
@@ -403,7 +403,7 @@ static int __devinit celleb_epci_init(struct pci_controller *hose) | |||
403 | return 0; | 403 | return 0; |
404 | } | 404 | } |
405 | 405 | ||
406 | int __devinit celleb_setup_epci(struct device_node *node, | 406 | int __init celleb_setup_epci(struct device_node *node, |
407 | struct pci_controller *hose) | 407 | struct pci_controller *hose) |
408 | { | 408 | { |
409 | struct resource r; | 409 | struct resource r; |
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 @@ | |||
28 | 28 | ||
29 | /* sio irq0=0xb00010022 irq0=0xb00010023 irq2=0xb00010024 | 29 | /* sio irq0=0xb00010022 irq0=0xb00010023 irq2=0xb00010024 |
30 | mmio=0xfff000-0x1000,0xff2000-0x1000 */ | 30 | mmio=0xfff000-0x1000,0xff2000-0x1000 */ |
31 | static int txx9_serial_bitmap = 0; | 31 | static int txx9_serial_bitmap __initdata = 0; |
32 | 32 | ||
33 | static struct { | 33 | static struct { |
34 | uint32_t offset; | 34 | uint32_t offset; |
35 | uint32_t index; | 35 | uint32_t index; |
36 | } txx9_scc_tab[3] = { | 36 | } txx9_scc_tab[3] __initdata = { |
37 | { 0x300, 0 }, /* 0xFFF300 */ | 37 | { 0x300, 0 }, /* 0xFFF300 */ |
38 | { 0x400, 0 }, /* 0xFFF400 */ | 38 | { 0x400, 0 }, /* 0xFFF400 */ |
39 | { 0x800, 1 } /* 0xFF2800 */ | 39 | { 0x800, 1 } /* 0xFF2800 */ |
@@ -79,7 +79,7 @@ static int __init txx9_serial_init(void) | |||
79 | return 0; | 79 | return 0; |
80 | } | 80 | } |
81 | 81 | ||
82 | static int txx9_serial_config(char *ptr) | 82 | static int __init txx9_serial_config(char *ptr) |
83 | { | 83 | { |
84 | int i; | 84 | int i; |
85 | 85 | ||
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 | {}, |