1 --- a/arch/mips/ath79/prom.c
2 +++ b/arch/mips/ath79/prom.c
3 @@ -70,6 +70,35 @@ static const char * __init ath79_prom_fi
7 +#ifdef CONFIG_IMAGE_CMDLINE_HACK
8 +extern char __image_cmdline[];
10 +static int __init ath79_use_image_cmdline(void)
12 + char *p = __image_cmdline;
24 + strlcpy(arcs_cmdline, p, sizeof(arcs_cmdline));
26 + strlcat(arcs_cmdline, " ", sizeof(arcs_cmdline));
27 + strlcat(arcs_cmdline, p, sizeof(arcs_cmdline));
33 +static inline int ath79_use_image_cmdline(void) { return 0; }
36 static int __init ath79_prom_init_myloader(void)
38 struct myloader_info *mylo;
39 @@ -95,6 +124,8 @@ static int __init ath79_prom_init_myload
41 ath79_prom_append_cmdline("ethaddr", mac_buf);
43 + ath79_use_image_cmdline();
48 @@ -102,6 +133,9 @@ static __init void ath79_prom_init_cmdli
52 + if (ath79_use_image_cmdline())
55 if (!is_valid_ram_addr(argv))