[PATCH 15/19] drivers: tty: serial: mux.c: Migrate to register_console_force helper
Marcos Paulo de Souza
mpdesouza at suse.com
Sat Dec 27 04:16:22 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>
---
drivers/tty/serial/mux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/mux.c b/drivers/tty/serial/mux.c
index b417faead20f..5a2d706b9cbc 100644
--- a/drivers/tty/serial/mux.c
+++ b/drivers/tty/serial/mux.c
@@ -390,7 +390,7 @@ static struct console mux_console = {
.write = mux_console_write,
.device = uart_console_device,
.setup = mux_console_setup,
- .flags = CON_ENABLED | CON_PRINTBUFFER,
+ .flags = CON_PRINTBUFFER,
.index = 0,
.data = &mux_driver,
};
@@ -547,7 +547,7 @@ static int __init mux_init(void)
mod_timer(&mux_timer, jiffies + MUX_POLL_DELAY);
#ifdef CONFIG_SERIAL_MUX_CONSOLE
- register_console(&mux_console);
+ register_console_force(&mux_console);
#endif
}
--
2.52.0
More information about the linux-arm-kernel
mailing list