Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43e3c885 authored by Thiemo Seufer's avatar Thiemo Seufer Committed by Ralf Baechle
Browse files

[MIPS] mips-boards: More liberal check for mips-board console



Allows overriding the MALTA/ATLAS/etc. default console setting with
non-serial console devices.

Signed-Off-By: default avatarThiemo Seufer <ths@networkno.de>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 119537c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -145,7 +145,7 @@ static void __init console_config(void)
	char parity = '\0', bits = '\0', flow = '\0';
	char parity = '\0', bits = '\0', flow = '\0';
	char *s;
	char *s;


	if ((strstr(prom_getcmdline(), "console=ttyS")) == NULL) {
	if ((strstr(prom_getcmdline(), "console=")) == NULL) {
		s = prom_getenv("modetty0");
		s = prom_getenv("modetty0");
		if (s) {
		if (s) {
			while (*s >= '0' && *s <= '9')
			while (*s >= '0' && *s <= '9')