um: stdio_console: Make preferred console
authorThomas Meyer <thomas@m3y3r.de>
Tue, 5 Jan 2021 12:01:28 +0000 (13:01 +0100)
committerRichard Weinberger <richard@nod.at>
Tue, 26 Jan 2021 21:11:37 +0000 (22:11 +0100)
commitd7ffac33631b2f72ec4cbbf9a64be6aa011b5cfd
tree4b1a2b70a3cfcc55a6a33f27f25506e3be27921f
parent1cdcfb44370b28187a0c33cdbcb4705103ed81aa
um: stdio_console: Make preferred console

The addition of the "ttynull" console driver did break the ordering of the
UML stdio console driver.
The UML stdio console driver is added in late_initcall (7), whereby the
ttynull driver is added in device_initcall (6), which always does make the
ttynull driver the default console.

Fix it by explicitly adding the UML stdio console as the preferred console,
in case no 'console=' command line option was specified.

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/um_arch.c