rb532: add 3.18 support
[openwrt/svn-archive/archive.git] / target / linux / rb532 / patches-3.18 / 001-cmdline_hack.patch
1 --- a/arch/mips/rb532/prom.c
2 +++ b/arch/mips/rb532/prom.c
3 @@ -67,6 +67,7 @@ static inline unsigned long tag2ul(char
4 return simple_strtoul(num, 0, 10);
5 }
6
7 +extern char __image_cmdline[];
8 void __init prom_setup_cmdline(void)
9 {
10 static char cmd_line[COMMAND_LINE_SIZE] __initdata;
11 @@ -108,6 +109,9 @@ void __init prom_setup_cmdline(void)
12 }
13 *(cp++) = ' ';
14
15 + strcpy(cp,(__image_cmdline));
16 + cp += strlen(__image_cmdline);
17 +
18 i = strlen(arcs_cmdline);
19 if (i > 0) {
20 *(cp++) = ' ';