diff options
author | Michal Simek <monstr@monstr.eu> | 2009-05-21 02:20:30 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-05-21 10:39:05 -0400 |
commit | 1dff89a9c7fab71b43ba79cc1aa6c6dbad582a35 (patch) | |
tree | c994f51ff18146375fddac4afae233915b6c5ab3 /arch/microblaze/kernel/prom.c | |
parent | 6e3d4e1d16a19f8462beb5bfe5f2c464770e795e (diff) |
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/prom.c')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 34c48718061a..003d37360623 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -563,7 +563,9 @@ static int __init early_init_dt_scan_chosen(unsigned long node, | |||
563 | strlcpy(cmd_line, p, min((int)l, COMMAND_LINE_SIZE)); | 563 | strlcpy(cmd_line, p, min((int)l, COMMAND_LINE_SIZE)); |
564 | 564 | ||
565 | #ifdef CONFIG_CMDLINE | 565 | #ifdef CONFIG_CMDLINE |
566 | #ifndef CONFIG_CMDLINE_FORCE | ||
566 | if (p == NULL || l == 0 || (l == 1 && (*p) == 0)) | 567 | if (p == NULL || l == 0 || (l == 1 && (*p) == 0)) |
568 | #endif | ||
567 | strlcpy(cmd_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE); | 569 | strlcpy(cmd_line, CONFIG_CMDLINE, COMMAND_LINE_SIZE); |
568 | #endif /* CONFIG_CMDLINE */ | 570 | #endif /* CONFIG_CMDLINE */ |
569 | 571 | ||