summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorAditya Dutt <[email protected]>2025-09-05 19:36:11 +0530
committerTom Rini <[email protected]>2025-09-16 13:43:33 -0600
commitbbc9347a98c3fb32610d4324c9e0f6239f013143 (patch)
treef5502a011b00007c61818ebdf066e19ce374b2e1 /cmd
parent41d9ac102536a07f8561533873bb8e772e61d54a (diff)
cmd: terminal: avoid serial_reinit_all() with DM_SERIAL enabled
serial_reinit_all() is only available when CONFIG DM_SERIAL is disabled and CONFIG_SERIAL is enabled. Signed-off-by: Aditya Dutt <[email protected]>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/terminal.c b/cmd/terminal.c
index d803bc6c896..14610694255 100644
--- a/cmd/terminal.c
+++ b/cmd/terminal.c
@@ -24,7 +24,7 @@ int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
if (!dev)
return -1;
- if (IS_ENABLED(CONFIG_SERIAL))
+ if (IS_ENABLED(CONFIG_SERIAL) && !IS_ENABLED(CONFIG_DM_SERIAL))
serial_reinit_all();
printf("Entering terminal mode for port %s\n", dev->name);