lib: utils/serial: Fix fdt_serial to match more dt nodes
authorXiang W <wxjstz@126.com>
Tue, 11 Jun 2024 11:19:32 +0000 (19:19 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Jun 2024 13:09:37 +0000 (18:39 +0530)
commit86bbe6c52faf48a5bcca2e3073d47d501408bee0
tree5cd5a7a77c264c6e6c52b2c00514ee9b381ed7b0
parent179e00a320df905f22cf2788880d5e1455795bf7
lib: utils/serial: Fix fdt_serial to match more dt nodes

If there are multiple dt nodes, the previous code only tries to match
the first one, which may lose initialization.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/serial/fdt_serial.c