aboutsummaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/c6x/kernel/setup.c')
-rw-r--r--arch/c6x/kernel/setup.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/arch/c6x/kernel/setup.c b/arch/c6x/kernel/setup.c
index f4e72bd8c103..731db4b9014d 100644
--- a/arch/c6x/kernel/setup.c
+++ b/arch/c6x/kernel/setup.c
@@ -68,13 +68,6 @@ unsigned long ram_end;
68static unsigned long dma_start __initdata; 68static unsigned long dma_start __initdata;
69static unsigned long dma_size __initdata; 69static unsigned long dma_size __initdata;
70 70
71char c6x_command_line[COMMAND_LINE_SIZE];
72
73#if defined(CONFIG_CMDLINE_BOOL)
74static const char default_command_line[COMMAND_LINE_SIZE] __section(.cmdline) =
75 CONFIG_CMDLINE;
76#endif
77
78struct cpuinfo_c6x { 71struct cpuinfo_c6x {
79 const char *cpu_name; 72 const char *cpu_name;
80 const char *cpu_voltage; 73 const char *cpu_voltage;
@@ -294,10 +287,8 @@ notrace void __init machine_init(unsigned long dt_ptr)
294 fdt = dtb; 287 fdt = dtb;
295 288
296 /* Do some early initialization based on the flat device tree */ 289 /* Do some early initialization based on the flat device tree */
297 early_init_devtree(fdt); 290 early_init_dt_scan(fdt);
298 291
299 /* parse_early_param needs a boot_command_line */
300 strlcpy(boot_command_line, c6x_command_line, COMMAND_LINE_SIZE);
301 parse_early_param(); 292 parse_early_param();
302} 293}
303 294
@@ -309,7 +300,7 @@ void __init setup_arch(char **cmdline_p)
309 printk(KERN_INFO "Initializing kernel\n"); 300 printk(KERN_INFO "Initializing kernel\n");
310 301
311 /* Initialize command line */ 302 /* Initialize command line */
312 *cmdline_p = c6x_command_line; 303 *cmdline_p = boot_command_line;
313 304
314 memory_end = ram_end; 305 memory_end = ram_end;
315 memory_end &= ~(PAGE_SIZE - 1); 306 memory_end &= ~(PAGE_SIZE - 1);