[PATCH 13/19] um: drivers: mconsole_kern.c: Migrate to register_console_force helper

From: Marcos Paulo de Souza
Date: Sat Dec 27 2025 - 07:51:14 EST


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@xxxxxxxx>
---
arch/um/drivers/mconsole_kern.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c
index ff4bda95b9c7..ce4f4ceb7f27 100644
--- a/arch/um/drivers/mconsole_kern.c
+++ b/arch/um/drivers/mconsole_kern.c
@@ -582,12 +582,11 @@ static void console_write(struct console *console, const char *string,

static struct console mc_console = { .name = "mc",
.write = console_write,
- .flags = CON_ENABLED,
.index = -1 };

static int mc_add_console(void)
{
- register_console(&mc_console);
+ register_console_force(&mc_console);
return 0;
}


--
2.52.0