From: Jeffy Chen Date: Sat, 19 Aug 2017 01:43:17 +0000 (+0800) Subject: serial: earlycon: Only try fdt when specify 'earlycon' exactly X-Git-Tag: v4.14-rc1~149^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=447ef990ad9e909443ec16edb837c6e37664f5ba;p=platform%2Fkernel%2Flinux-rpi.git 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: d503187b6cc4 (of/serial: move earlycon early_param handling to serial) Signed-off-by: Jeffy Chen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c index c365154..335933e 100644 --- a/drivers/tty/serial/earlycon.c +++ b/drivers/tty/serial/earlycon.c @@ -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(); } }