diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-21 08:20:30 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-21 16:39:05 +0200 |
commit | 1dff89a9c7fab71b43ba79cc1aa6c6dbad582a35 (patch) | |
tree | c994f51ff18146375fddac4afae233915b6c5ab3 /arch/microblaze/kernel/setup.c | |
parent | microblaze: Guard __HAVE_ARCH macros with __KERNEL__ in string.h (diff) | |
download | linux-1dff89a9c7fab71b43ba79cc1aa6c6dbad582a35.tar.xz linux-1dff89a9c7fab71b43ba79cc1aa6c6dbad582a35.zip |
microblaze: Fix early cmdline for CMDLINE_FORCE
This patch fixed parsing early parameters because
current implementation does that early parse DTS
command line and then parse CMDLINE line which is compiled-in.
For case that DTS doesn't contain command line is
copied command line from kernel with is done in prom.c
that's why I can remove it from machine_early_init.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/setup.c')
-rw-r--r-- | arch/microblaze/kernel/setup.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index eb6b41758e23..c156b16f9ee9 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c @@ -42,10 +42,6 @@ char cmd_line[COMMAND_LINE_SIZE]; void __init setup_arch(char **cmdline_p) { -#ifdef CONFIG_CMDLINE_FORCE - strlcpy(cmd_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE); - strlcpy(boot_command_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE); -#endif *cmdline_p = cmd_line; console_verbose(); @@ -106,10 +102,7 @@ void __init machine_early_init(const char *cmdline, unsigned int ram, memset(__bss_start, 0, __bss_stop-__bss_start); memset(_ssbss, 0, _esbss-_ssbss); - /* - * Copy command line passed from bootloader, or use default - * if none provided, or forced - */ + /* Copy command line passed from bootloader */ #ifndef CONFIG_CMDLINE_BOOL if (cmdline && cmdline[0] != '\0') strlcpy(cmd_line, cmdline, COMMAND_LINE_SIZE); |