diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-08-26 18:28:50 +0200 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 18:38:02 +0200 |
commit | bbf28b505ac2dd923b9051ca5031cf87bf7c40cc (patch) | |
tree | 93b7b0ee24f52f5ce3b8257cbd2f3ae92a54d965 /arch/openrisc/kernel/setup.c | |
parent | c6x: use boot_command_line instead of private c6x_command_line (diff) | |
download | linux-bbf28b505ac2dd923b9051ca5031cf87bf7c40cc.tar.xz linux-bbf28b505ac2dd923b9051ca5031cf87bf7c40cc.zip |
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/setup.c')
-rw-r--r-- | arch/openrisc/kernel/setup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/openrisc/kernel/setup.c b/arch/openrisc/kernel/setup.c index d7359ffbcbdd..719c5c8895c4 100644 --- a/arch/openrisc/kernel/setup.c +++ b/arch/openrisc/kernel/setup.c @@ -50,8 +50,6 @@ #include "vmlinux.h" -char __initdata cmd_line[COMMAND_LINE_SIZE] = CONFIG_CMDLINE; - static unsigned long __init setup_memory(void) { unsigned long bootmap_size; @@ -316,7 +314,7 @@ void __init setup_arch(char **cmdline_p) conswitchp = &dummy_con; #endif - *cmdline_p = cmd_line; + *cmdline_p = boot_command_line; printk(KERN_INFO "OpenRISC Linux -- http://openrisc.net\n"); } |