diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-06-21 09:56:30 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:18 -0400 |
commit | c83cfc9c9477d0bc0e0a1ba29dfc58e0d42b2faf (patch) | |
tree | 86c613b44ae25af1808b81dde2a4dc0274647194 /arch/mips/momentum | |
parent | 8c93650890a33318263880dec36603a6d5749b7e (diff) |
Get rid of early_init. There's more need to make this form of
initialization actually useful and as is certainly unmergable with
upstream.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/momentum')
-rw-r--r-- | arch/mips/momentum/jaguar_atx/setup.c | 6 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_3/setup.c | 6 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_c/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_g/setup.c | 6 |
4 files changed, 4 insertions, 18 deletions
diff --git a/arch/mips/momentum/jaguar_atx/setup.c b/arch/mips/momentum/jaguar_atx/setup.c index 90288cf2b1e0..768bf4406452 100644 --- a/arch/mips/momentum/jaguar_atx/setup.c +++ b/arch/mips/momentum/jaguar_atx/setup.c | |||
@@ -351,7 +351,7 @@ static __init int __init ja_pci_init(void) | |||
351 | 351 | ||
352 | arch_initcall(ja_pci_init); | 352 | arch_initcall(ja_pci_init); |
353 | 353 | ||
354 | static int __init momenco_jaguar_atx_setup(void) | 354 | void __init plat_setup(void) |
355 | { | 355 | { |
356 | unsigned int tmpword; | 356 | unsigned int tmpword; |
357 | 357 | ||
@@ -467,8 +467,4 @@ static int __init momenco_jaguar_atx_setup(void) | |||
467 | 467 | ||
468 | } | 468 | } |
469 | #endif | 469 | #endif |
470 | |||
471 | return 0; | ||
472 | } | 470 | } |
473 | |||
474 | early_initcall(momenco_jaguar_atx_setup); | ||
diff --git a/arch/mips/momentum/ocelot_3/setup.c b/arch/mips/momentum/ocelot_3/setup.c index ce2efcbab7aa..a7803e08f9db 100644 --- a/arch/mips/momentum/ocelot_3/setup.c +++ b/arch/mips/momentum/ocelot_3/setup.c | |||
@@ -307,7 +307,7 @@ static __init int __init ja_pci_init(void) | |||
307 | 307 | ||
308 | arch_initcall(ja_pci_init); | 308 | arch_initcall(ja_pci_init); |
309 | 309 | ||
310 | static int __init momenco_ocelot_3_setup(void) | 310 | void __init plat_setup(void) |
311 | { | 311 | { |
312 | unsigned int tmpword; | 312 | unsigned int tmpword; |
313 | 313 | ||
@@ -391,8 +391,4 @@ static int __init momenco_ocelot_3_setup(void) | |||
391 | 391 | ||
392 | /* Support for 128 MB memory */ | 392 | /* Support for 128 MB memory */ |
393 | add_memory_region(0x0, 0x08000000, BOOT_MEM_RAM); | 393 | add_memory_region(0x0, 0x08000000, BOOT_MEM_RAM); |
394 | |||
395 | return 0; | ||
396 | } | 394 | } |
397 | |||
398 | early_initcall(momenco_ocelot_3_setup); | ||
diff --git a/arch/mips/momentum/ocelot_c/setup.c b/arch/mips/momentum/ocelot_c/setup.c index 844ddd06349b..ce70fc96f160 100644 --- a/arch/mips/momentum/ocelot_c/setup.c +++ b/arch/mips/momentum/ocelot_c/setup.c | |||
@@ -222,7 +222,7 @@ void momenco_time_init(void) | |||
222 | rtc_set_time = m48t37y_set_time; | 222 | rtc_set_time = m48t37y_set_time; |
223 | } | 223 | } |
224 | 224 | ||
225 | static void __init momenco_ocelot_c_setup(void) | 225 | void __init plat_setup(void) |
226 | { | 226 | { |
227 | unsigned int tmpword; | 227 | unsigned int tmpword; |
228 | 228 | ||
@@ -340,8 +340,6 @@ static void __init momenco_ocelot_c_setup(void) | |||
340 | } | 340 | } |
341 | } | 341 | } |
342 | 342 | ||
343 | early_initcall(momenco_ocelot_c_setup); | ||
344 | |||
345 | #ifndef CONFIG_64BIT | 343 | #ifndef CONFIG_64BIT |
346 | /* This needs to be one of the first initcalls, because no I/O port access | 344 | /* This needs to be one of the first initcalls, because no I/O port access |
347 | can work before this */ | 345 | can work before this */ |
diff --git a/arch/mips/momentum/ocelot_g/setup.c b/arch/mips/momentum/ocelot_g/setup.c index 38a78ab8c830..6336751391c3 100644 --- a/arch/mips/momentum/ocelot_g/setup.c +++ b/arch/mips/momentum/ocelot_g/setup.c | |||
@@ -160,7 +160,7 @@ static void __init setup_l3cache(unsigned long size) | |||
160 | printk("Done\n"); | 160 | printk("Done\n"); |
161 | } | 161 | } |
162 | 162 | ||
163 | static int __init momenco_ocelot_g_setup(void) | 163 | void __init plat_setup(void) |
164 | { | 164 | { |
165 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); | 165 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); |
166 | unsigned int tmpword; | 166 | unsigned int tmpword; |
@@ -240,12 +240,8 @@ static int __init momenco_ocelot_g_setup(void) | |||
240 | 240 | ||
241 | /* FIXME: Fix up the DiskOnChip mapping */ | 241 | /* FIXME: Fix up the DiskOnChip mapping */ |
242 | MV_WRITE(0x468, 0xfef73); | 242 | MV_WRITE(0x468, 0xfef73); |
243 | |||
244 | return 0; | ||
245 | } | 243 | } |
246 | 244 | ||
247 | early_initcall(momenco_ocelot_g_setup); | ||
248 | |||
249 | /* This needs to be one of the first initcalls, because no I/O port access | 245 | /* This needs to be one of the first initcalls, because no I/O port access |
250 | can work before this */ | 246 | can work before this */ |
251 | 247 | ||