summaryrefslogtreecommitdiff
path: root/arch/openrisc/kernel/prom.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-26 20:28:50 +0400
committerRob Herring <rob.herring@calxeda.com>2013-10-09 20:38:02 +0400
commitbbf28b505ac2dd923b9051ca5031cf87bf7c40cc (patch)
tree93b7b0ee24f52f5ce3b8257cbd2f3ae92a54d965 /arch/openrisc/kernel/prom.c
parent312717f15ac7095c3ea98d487276781535ca7c0b (diff)
downloadlinux-bbf28b505ac2dd923b9051ca5031cf87bf7c40cc.tar.xz
openrisc: use boot_command_line instead of private cmd_line
Save some pointless copying of the kernel command line and just use boot_command_line instead. The DT code already handles CONFIG_CMDLINE, so a separate copy is not needed. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Jonas Bonn <jonas@southpole.se> Cc: linux@lists.openrisc.net Reviewed-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'arch/openrisc/kernel/prom.c')
-rw-r--r--arch/openrisc/kernel/prom.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/openrisc/kernel/prom.c b/arch/openrisc/kernel/prom.c
index a63e76872f84..bf3fd05703c3 100644
--- a/arch/openrisc/kernel/prom.c
+++ b/arch/openrisc/kernel/prom.c
@@ -47,8 +47,6 @@
#include <asm/sections.h>
#include <asm/setup.h>
-extern char cmd_line[COMMAND_LINE_SIZE];
-
void __init early_init_dt_add_memory_arch(u64 base, u64 size)
{
size &= PAGE_MASK;
@@ -67,15 +65,12 @@ void __init early_init_devtree(void *params)
* device-tree, including the platform type, initrd location and
* size, TCE reserve, and more ...
*/
- of_scan_flat_dt(early_init_dt_scan_chosen, cmd_line);
+ of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line);
/* Scan memory nodes and rebuild MEMBLOCKs */
of_scan_flat_dt(early_init_dt_scan_root, NULL);
of_scan_flat_dt(early_init_dt_scan_memory, NULL);
- /* Save command line for /proc/cmdline and then parse parameters */
- strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE);
-
memblock_allow_resize();
/* We must copy the flattend device tree from init memory to regular