1 --- a/arch/mips/ath79/prom.c
2 +++ b/arch/mips/ath79/prom.c
7 +static char ath79_cmdline_buf[COMMAND_LINE_SIZE] __initdata;
9 +static void __init ath79_prom_append_cmdline(const char *name,
12 + snprintf(ath79_cmdline_buf, sizeof(ath79_cmdline_buf),
13 + " %s=%s", name, value);
14 + strlcat(arcs_cmdline, ath79_cmdline_buf, sizeof(arcs_cmdline));
17 void __init prom_init(void)
23 + env = fw_getenv("ethaddr");
25 + ath79_prom_append_cmdline("ethaddr", env);
27 + env = fw_getenv("board");
29 + /* Workaround for buggy bootloaders */
30 + if (strcmp(env, "RouterStation") == 0 ||
31 + strcmp(env, "Ubiquiti AR71xx-based board") == 0)
34 + if (strcmp(env, "RouterStation PRO") == 0)
37 + ath79_prom_append_cmdline("board", env);
40 #ifdef CONFIG_BLK_DEV_INITRD
41 /* Read the initrd address from the firmware environment */
42 initrd_start = fw_getenvl("initrd_start");