From 537f010d3528b7e6e1f3c1dfbe18ab7c70fca3a4 Mon Sep 17 00:00:00 2001 From: Xiaoguang Xing Date: Sat, 7 Sep 2024 16:38:12 +0800 Subject: [PATCH] Fix when no serial node in dtb bm1690 tp dtb has not serial node. Signed-off-by: bowen.pang --- platform/generic/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/generic/platform.c b/platform/generic/platform.c index 49d877d0da..b69b96bb5d 100644 --- a/platform/generic/platform.c +++ b/platform/generic/platform.c @@ -232,7 +232,7 @@ static int generic_early_init(bool cold_boot) else rc = fdt_serial_init(fdt); if (rc) - return rc; + return (rc == SBI_ENODEV) ? 0 : rc; } if (!generic_plat || !generic_plat->early_init)