From: "Steven J. Hill" <sjhill@xxxxxxxx> Signed-off-by: Steven J. Hill <sjhill@xxxxxxxx> --- arch/mips/lasat/prom.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/mips/lasat/prom.c b/arch/mips/lasat/prom.c index 20fde19..8bd3994 100644 --- a/arch/mips/lasat/prom.c +++ b/arch/mips/lasat/prom.c @@ -9,7 +9,7 @@ #include <linux/mm.h> #include <linux/bootmem.h> #include <linux/ioport.h> -#include <asm/bootinfo.h> +#include <asm/fw/fw.h> #include <asm/lasat/lasat.h> #include <asm/cpu.h> @@ -81,9 +81,6 @@ static struct at93c_defs at93c_defs[N_MACHTYPES] = { void __init prom_init(void) { - int argc = fw_arg0; - char **argv = (char **) fw_arg1; - setup_prom_vectors(); if (IS_LASAT_200()) { @@ -98,11 +95,7 @@ void __init prom_init(void) lasat_init_board_info(); /* Read info from EEPROM */ - /* Get the command line */ - if (argc > 0) { - strncpy(arcs_cmdline, argv[0], COMMAND_LINE_SIZE-1); - arcs_cmdline[COMMAND_LINE_SIZE-1] = '\0'; - } + fw_init_cmdline(); /* Set the I/O base address */ set_io_port_base(KSEG1); -- 1.7.10.3