Skip to content

Commit 24482f4

Browse files
committed
[DM/FDT] Fix garble when booting
Fix garble caused by empty implementation of earlycon series function in driver.If driver doesn't offer earlycon_id or rt_f dt_earlycon_id.setup function but open option, the checking of best_earlycon_id will failed. Signed-off-by: 1078249029 <[email protected]>
1 parent 45eea78 commit 24482f4

File tree

1 file changed

+1
-1
lines changed
  • components/drivers/ofw

1 file changed

+1
-1
lines changed

components/drivers/ofw/fdt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "ofw_internal.h"
2525

26-
struct rt_fdt_earlycon fdt_earlycon rt_section(".bss.noclean.earlycon");
26+
struct rt_fdt_earlycon fdt_earlycon;
2727

2828
RT_OFW_SYMBOL_TYPE_RANGE(earlycon, struct rt_fdt_earlycon_id, _earlycon_start = {}, _earlycon_end = {});
2929

0 commit comments

Comments
 (0)