[PATCH 11/19] powerpc: kernel: udbg: Migrate to register_console_force helper

Marcos Paulo de Souza
2025-12-27T22:39:53Z

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@suse.com>
---
arch/powerpc/kernel/udbg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/powerpc/kernel/udbg.c b/arch/powerpc/kernel/udbg.c
index 862b22b2b616..0f88b7697755 100644
--- a/arch/powerpc/kernel/udbg.c
+++ b/arch/powerpc/kernel/udbg.c
@@ -142,7 +142,7 @@ static void udbg_console_write(struct console *con, const char *s,
static struct console udbg_console = {
.name = "udbg",
.write = udbg_console_write,
- .flags = CON_PRINTBUFFER | CON_ENABLED | CON_BOOT | CON_ANYTIME,
+ .flags = CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME,
.index = 0,
};

@@ -163,7 +163,7 @@ void __init register_early_udbg_console(void)
udbg_console.flags &= ~CON_BOOT;
}
early_console = &udbg_console;
- register_console(&udbg_console);
+ register_console_force(&udbg_console);
}

#if 0 /* if you want to use this as a regular output console */

--
2.52.0