[PATCH 14/19] drivers: hwtracing: stm: console.c: Migrate to register_console_force helper
Marcos Paulo de Souza
mpdesouza at suse.com
Sat Dec 27 04:16:21 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/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
More information about the linux-arm-kernel
mailing list