提交 43e3c885 编写于 作者: T Thiemo Seufer 提交者: Ralf Baechle

[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: NThiemo Seufer <ths@networkno.de>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 119537c0
...@@ -145,7 +145,7 @@ static void __init console_config(void) ...@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册