diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-06-02 14:05:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-06-08 11:57:50 -0400 |
commit | e082f188f774544bc2c2edf51176157503c98fe4 (patch) | |
tree | 55046f4b2dcb1afee5a23b1bfb37537682c8b27f /arch/mips/sibyte | |
parent | e36b80b658d471be5a8a40f00e2c7614524b86a2 (diff) |
MIPS: Sibyte: Honor CONFIG_CMDLINE
Original patch by Imre Kaloz <kaloz@openwrt.org>.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sibyte')
-rw-r--r-- | arch/mips/sibyte/cfe/setup.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/mips/sibyte/cfe/setup.c b/arch/mips/sibyte/cfe/setup.c index 3de30f79db3f..eb5396cf81bb 100644 --- a/arch/mips/sibyte/cfe/setup.c +++ b/arch/mips/sibyte/cfe/setup.c | |||
@@ -288,13 +288,7 @@ void __init prom_init(void) | |||
288 | */ | 288 | */ |
289 | cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE); | 289 | cfe_cons_handle = cfe_getstdhandle(CFE_STDHANDLE_CONSOLE); |
290 | if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) { | 290 | if (cfe_getenv("LINUX_CMDLINE", arcs_cmdline, CL_SIZE) < 0) { |
291 | if (argc < 0) { | 291 | if (argc >= 0) { |
292 | /* | ||
293 | * It's OK for direct boot to not provide a | ||
294 | * command line | ||
295 | */ | ||
296 | strcpy(arcs_cmdline, "root=/dev/ram0 "); | ||
297 | } else { | ||
298 | /* The loader should have set the command line */ | 292 | /* The loader should have set the command line */ |
299 | /* too early for panic to do any good */ | 293 | /* too early for panic to do any good */ |
300 | printk("LINUX_CMDLINE not defined in cfe."); | 294 | printk("LINUX_CMDLINE not defined in cfe."); |