diff options
author | Yoichi Yuasa <yuasa@linux-mips.org> | 2009-12-18 07:38:37 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-01-12 12:19:33 -0500 |
commit | 7e326d687d182e45447c24daccaa9b60bae130d5 (patch) | |
tree | 60958ec62e35aacc5471503a4ef3d58c6ccb93f6 /arch/mips/powertv/init.c | |
parent | 0eb99a9354cfe73dfa76ef81c917f7655b1b306c (diff) |
MIPS: PowerTV: simplify prom_init_cmdline() and merge into prom_init()
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/801/
Reviewed-by: David VomLehn <dvomlehn@cisco.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/powertv/init.c')
-rw-r--r-- | arch/mips/powertv/init.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/mips/powertv/init.c b/arch/mips/powertv/init.c index 5f4e4c304e48..de0e46ab0957 100644 --- a/arch/mips/powertv/init.c +++ b/arch/mips/powertv/init.c | |||
@@ -34,10 +34,7 @@ | |||
34 | #include <asm/mips-boards/generic.h> | 34 | #include <asm/mips-boards/generic.h> |
35 | #include <asm/mach-powertv/asic.h> | 35 | #include <asm/mach-powertv/asic.h> |
36 | 36 | ||
37 | #include "init.h" | 37 | static int *_prom_envp; |
38 | |||
39 | int prom_argc; | ||
40 | int *_prom_argv, *_prom_envp; | ||
41 | unsigned long _prom_memsize; | 38 | unsigned long _prom_memsize; |
42 | 39 | ||
43 | /* | 40 | /* |
@@ -109,8 +106,11 @@ static void __init mips_ejtag_setup(void) | |||
109 | 106 | ||
110 | void __init prom_init(void) | 107 | void __init prom_init(void) |
111 | { | 108 | { |
109 | int prom_argc; | ||
110 | char *prom_argv; | ||
111 | |||
112 | prom_argc = fw_arg0; | 112 | prom_argc = fw_arg0; |
113 | _prom_argv = (int *) fw_arg1; | 113 | prom_argv = (char *) fw_arg1; |
114 | _prom_envp = (int *) fw_arg2; | 114 | _prom_envp = (int *) fw_arg2; |
115 | _prom_memsize = (unsigned long) fw_arg3; | 115 | _prom_memsize = (unsigned long) fw_arg3; |
116 | 116 | ||
@@ -118,7 +118,10 @@ void __init prom_init(void) | |||
118 | board_ejtag_handler_setup = mips_ejtag_setup; | 118 | board_ejtag_handler_setup = mips_ejtag_setup; |
119 | 119 | ||
120 | pr_info("\nLINUX started...\n"); | 120 | pr_info("\nLINUX started...\n"); |
121 | prom_init_cmdline(); | 121 | |
122 | if (prom_argc == 1) | ||
123 | strlcat(arcs_cmdline, prom_argv, COMMAND_LINE_SIZE); | ||
124 | |||
122 | configure_platform(); | 125 | configure_platform(); |
123 | prom_meminit(); | 126 | prom_meminit(); |
124 | 127 | ||