From: "Steven J. Hill" <sjhill@xxxxxxxx> Signed-off-by: Steven J. Hill <sjhill@xxxxxxxx> --- arch/mips/vr41xx/common/init.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/arch/mips/vr41xx/common/init.c b/arch/mips/vr41xx/common/init.c index 2391632..a4c1f02 100644 --- a/arch/mips/vr41xx/common/init.c +++ b/arch/mips/vr41xx/common/init.c @@ -19,11 +19,9 @@ */ #include <linux/init.h> #include <linux/ioport.h> -#include <linux/irq.h> -#include <linux/string.h> -#include <asm/bootinfo.h> #include <asm/time.h> +#include <asm/fw/fw.h> #include <asm/vr41xx/irq.h> #include <asm/vr41xx/vr41xx.h> @@ -59,17 +57,7 @@ void __init plat_mem_setup(void) void __init prom_init(void) { - int argc, i; - char **argv; - - argc = fw_arg0; - argv = (char **)fw_arg1; - - for (i = 1; i < argc; i++) { - strlcat(arcs_cmdline, argv[i], COMMAND_LINE_SIZE); - if (i < (argc - 1)) - strlcat(arcs_cmdline, " ", COMMAND_LINE_SIZE); - } + fw_init_cmdline(); } void __init prom_free_prom_memory(void) -- 1.7.10.3