[PATCH] removed ad-hoc cmdline default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Loongson builds have an ad-hoc cmdline default of "console=ttyS0,115200 
root=/dev/hda1". These settings come from vendor (I remember builds 
from Lemote branch requiring a "console=tty" override in order to get a 
working console).

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

I recommend removing them. They make sense from a distributor/vendor 
POV but otherwise are just a nuissance.

Remove ad-hoc cmdline settings.

Signed-off-by: Robert Millan <rmh@xxxxxxx>

diff --git a/arch/mips/loongson/common/cmdline.c b/arch/mips/loongson/common/cmdline.c
index 1a06def..353e1d2 100644
--- a/arch/mips/loongson/common/cmdline.c
+++ b/arch/mips/loongson/common/cmdline.c
@@ -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();
 }


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux