um: console: Ignore console= option
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 17 May 2017 17:20:39 +0000 (02:20 +0900)
committerRichard Weinberger <richard@nod.at>
Wed, 5 Jul 2017 21:18:48 +0000 (23:18 +0200)
Ignore linux kernel's console= option at uml's console
option handler. Since uml's con= option is only for
setting up new console, and Linux kernel's console=
option specify to which console kernel output its
message, we can use both option for different purpose.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/stdio_console.c

index 7b361f3..c90817b 100644 (file)
@@ -192,6 +192,9 @@ __uml_exitcall(console_exit);
 
 static int console_chan_setup(char *str)
 {
+       if (!strncmp(str, "sole=", 5))  /* console= option specifies tty */
+               return 0;
+
        line_setup(vt_conf, MAX_TTYS, &def_conf, str, "console");
        return 1;
 }