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>
This commit is contained in:
Ralf Baechle
2005-06-21 13:56:30 +00:00
parent 8c93650890
commit c83cfc9c94
34 changed files with 53 additions and 161 deletions

View File

@@ -510,31 +510,7 @@ static inline void resource_init(void)
#undef MAXMEM
#undef MAXMEM_PFN
static int __initdata earlyinit_debug;
static int __init earlyinit_debug_setup(char *str)
{
earlyinit_debug = 1;
return 1;
}
__setup("earlyinit_debug", earlyinit_debug_setup);
extern initcall_t __earlyinitcall_start, __earlyinitcall_end;
static void __init do_earlyinitcalls(void)
{
initcall_t *call, *start, *end;
start = &__earlyinitcall_start;
end = &__earlyinitcall_end;
for (call = start; call < end; call++) {
if (earlyinit_debug)
printk("calling earlyinitcall 0x%p\n", *call);
(*call)();
}
}
extern void plat_setup(void);
void __init setup_arch(char **cmdline_p)
{
@@ -551,7 +527,7 @@ void __init setup_arch(char **cmdline_p)
#endif
/* call board setup routine */
do_earlyinitcalls();
plat_setup();
strlcpy(command_line, arcs_cmdline, sizeof(command_line));
strlcpy(saved_command_line, command_line, COMMAND_LINE_SIZE);