lib: utils: Improve fdt_serial_init
authorXiang W <wxjstz@126.com>
Mon, 22 May 2023 05:18:07 +0000 (13:18 +0800)
committerAnup Patel <anup@brainfault.org>
Fri, 26 May 2023 07:07:25 +0000 (12:37 +0530)
commit264d0be1fdd93874bc8f4a365c911e15ec330ce5
tree1a18fe46baae634e86e9a3d7562e876461b8be28
parent8b99a7f7d8294be29e18a667d51e13755ed2c0e0
lib: utils: Improve fdt_serial_init

A final check of all DT nodes does not necessarily find a match, so
SBI_ENODEV needs to be returned. Optimize removal of current_driver.

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