[PATCH 14/19] drivers: hwtracing: stm: console.c: Migrate to register_console_force helper

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

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/hwtracing/stm/console.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hwtracing/stm/console.c b/drivers/hwtracing/stm/console.c
index 097a00ac43a7..d3ae633e3bf1 100644
--- a/drivers/hwtracing/stm/console.c
+++ b/drivers/hwtracing/stm/console.c
@@ -42,8 +42,8 @@ static int stm_console_link(struct stm_source_data *data)

strcpy(sc->console.name, "stm_console");
sc->console.write = stm_console_write;
- sc->console.flags = CON_ENABLED | CON_PRINTBUFFER;
- register_console(&sc->console);
+ sc->console.flags = CON_PRINTBUFFER;
+ register_console_force(&sc->console);

return 0;
}

--
2.52.0