linux-mips
[Top] [All Lists]

[PATCH 16/35] MIPS: Lasat: Cleanup firmware support for the Lasat platfo

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 16/35] MIPS: Lasat: Cleanup firmware support for the Lasat platform.
From: "Steven J. Hill" <sjhill@mips.com>
Date: Tue, 5 Jun 2012 16:19:20 -0500
Cc: "Steven J. Hill" <sjhill@mips.com>
In-reply-to: <1338931179-9611-1-git-send-email-sjhill@mips.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1338931179-9611-1-git-send-email-sjhill@mips.com>
Sender: linux-mips-bounce@linux-mips.org
From: "Steven J. Hill" <sjhill@mips.com>

Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
 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


<Prev in Thread] Current Thread [Next in Thread>