Thread (57 messages) 57 messages, 10 authors, 2012-06-07
STALE5123d
Revisions (2)
  1. v1 current
  2. v1 [diff vs current]

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

From: Steven J. Hill <hidden>
Date: 2012-06-05 21:59:52
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

From: "Steven J. Hill" <redacted>

Signed-off-by: Steven J. Hill <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help