[PATCH 16/19] drivers: tty: serial: ma35d1_serial: Migrate to register_console_force helper

Marcos Paulo de Souza
2025-12-27T22:40:01Z

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>
---
drivers/tty/serial/ma35d1_serial.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tty/serial/ma35d1_serial.c b/drivers/tty/serial/ma35d1_serial.c
index 285b0fe41a86..d1e03dee5579 100644
--- a/drivers/tty/serial/ma35d1_serial.c
+++ b/drivers/tty/serial/ma35d1_serial.c
@@ -633,7 +633,7 @@ static struct console ma35d1serial_console = {
.write = ma35d1serial_console_write,
.device = uart_console_device,
.setup = ma35d1serial_console_setup,
- .flags = CON_PRINTBUFFER | CON_ENABLED,
+ .flags = CON_PRINTBUFFER,
.index = -1,
.data = &ma35d1serial_reg,
};
@@ -657,7 +657,7 @@ static void ma35d1serial_console_init_port(void)
static int __init ma35d1serial_console_init(void)
{
ma35d1serial_console_init_port();
- register_console(&ma35d1serial_console);
+ register_console_force(&ma35d1serial_console);
return 0;
}
console_initcall(ma35d1serial_console_init);

--
2.52.0