提交 447ef990 编写于 作者: J Jeffy Chen 提交者: Greg Kroah-Hartman

serial: earlycon: Only try fdt when specify 'earlycon' exactly

When moving earlycon early_param handling to serial, the devicetree
earlycons enable condition changed slightly.

We used to only do that for 'console'/'earlycon', but now would also
for 'console='/'earlycon='.

Fix it by using the same condition like before.

Fixes: d503187b (of/serial: move earlycon early_param handling to serial)
Signed-off-by: NJeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 454d2379
......@@ -220,7 +220,7 @@ static int __init param_setup_earlycon(char *buf)
if (IS_ENABLED(CONFIG_ACPI_SPCR_TABLE)) {
earlycon_init_is_deferred = true;
return 0;
} else {
} else if (!buf) {
return early_init_dt_scan_chosen_stdout();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册