mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
vt: Initialize conswitchp to dummy_con if unset
If the arch setup code hasn't initialized conswitchp yet, set it to dummy_con in con_init. This will allow us to drop the dummy_con initialization that's done in almost every architecture. Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Link: https://lore.kernel.org/r/20191218214506.49252-3-nivedita@alum.mit.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e018bc28b0
commit
805ece2a58
1 changed files with 3 additions and 2 deletions
|
@ -3326,8 +3326,9 @@ static int __init con_init(void)
|
|||
|
||||
console_lock();
|
||||
|
||||
if (conswitchp)
|
||||
display_desc = conswitchp->con_startup();
|
||||
if (!conswitchp)
|
||||
conswitchp = &dummy_con;
|
||||
display_desc = conswitchp->con_startup();
|
||||
if (!display_desc) {
|
||||
fg_console = 0;
|
||||
console_unlock();
|
||||
|
|
Loading…
Add table
Reference in a new issue