The register_console_force function was introduced to register consoles
even on the presence of default consoles, replacing the CON_ENABLE flag
that was forcing the same behavior.

No functional changes.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
---
 arch/sparc/kernel/btext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc/kernel/btext.c b/arch/sparc/kernel/btext.c
index 2bf558a0c568..951de7733632 100644
--- a/arch/sparc/kernel/btext.c
+++ b/arch/sparc/kernel/btext.c
@@ -301,7 +301,7 @@ static void btext_console_write(struct console *con, const 
char *s,
 static struct console btext_console = {
        .name   = "btext",
        .write  = btext_console_write,
-       .flags  = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT | CON_ANYTIME,
+       .flags  = CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME,
        .index  = 0,
 };
 
@@ -320,7 +320,7 @@ int __init btext_find_display(void)
        ret = btext_initialize(node);
        if (!ret) {
                btext_clearscreen();
-               register_console(&btext_console);
+               register_console_force(&btext_console);
        }
        return ret;
 }

-- 
2.52.0


Reply via email to