MIPS: Loongson: Remove ad-hoc cmdline default
authorRobert Millan <rmh@gnu.org>
Sun, 7 Nov 2010 12:38:29 +0000 (13:38 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 14 Mar 2011 20:07:25 +0000 (21:07 +0100)
Loongson builds have an ad-hoc cmdline default of "console=ttyS0,115200
root=/dev/hda1". These settings come from a vendor; I remember builds
from Lemote branch requiring a "console=tty" override in order to get a
working console.

At least on Yeeloong, they're particularly useless: there's no external
serial port, and the IDE drive is now recognised as /dev/sda.

Signed-off-by: Robert Millan <rmh@gnu.org>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1759/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/loongson/common/cmdline.c

index 1a06defc4f7f565fd45a0c33d8e24a17bdd22091..353e1d2e41a525660be6be28338de00875e98938 100644 (file)
@@ -44,10 +44,5 @@ void __init prom_init_cmdline(void)
                strcat(arcs_cmdline, " ");
        }
 
-       if ((strstr(arcs_cmdline, "console=")) == NULL)
-               strcat(arcs_cmdline, " console=ttyS0,115200");
-       if ((strstr(arcs_cmdline, "root=")) == NULL)
-               strcat(arcs_cmdline, " root=/dev/hda1");
-
        prom_init_machtype();
 }