[PATCH 12/19] sparc: kernel: btext: Migrate to register_console_force helper
Marcos Paulo de Souza
mpdesouza at suse.com
Sat Dec 27 04:16:19 PST 2025
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 <mpdesouza at suse.com>
---
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
More information about the linux-arm-kernel
mailing list