[PATCH 09/19] m68k: emu: nfcon.c: Migrate to register_console_force helper

Marcos Paulo de Souza
2025-12-27T12:18:12Z

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/m68k/emu/nfcon.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/m68k/emu/nfcon.c b/arch/m68k/emu/nfcon.c
index d41260672e24..3504bbb4aedc 100644
--- a/arch/m68k/emu/nfcon.c
+++ b/arch/m68k/emu/nfcon.c
@@ -110,10 +110,9 @@ static int __init nf_debug_setup(char *arg)
/*
* The console will be enabled when debug=nfcon is specified
* as a kernel parameter. Since this is a non-standard way
- * of enabling consoles, it must be explicitly enabled.
+ * of enabling consoles, it must be explicitly forced.
*/
- nf_console.flags |= CON_ENABLED;
- register_console(&nf_console);
+ register_console_force(&nf_console);
}

return 0;

--
2.52.0