mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
of/fdt: don't ignore errors from of_setup_earlycon
If of_setup_earlycon we should keep on iterating earlycon options instead of breaking out of the loop. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
1f947a863d
commit
b204731689
@ -947,8 +947,8 @@ int __init early_init_dt_scan_chosen_stdout(void)
|
||||
if (fdt_node_check_compatible(fdt, offset, match->compatible))
|
||||
continue;
|
||||
|
||||
of_setup_earlycon(match, offset, options);
|
||||
return 0;
|
||||
if (of_setup_earlycon(match, offset, options) == 0)
|
||||
return 0;
|
||||
}
|
||||
return -ENODEV;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user