提交 b2047316 编写于 作者: C Christoph Hellwig 提交者: Rob Herring

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: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 1f947a86
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册