serial: earlycon: Only try fdt when specify 'earlycon' exactly
authorJeffy Chen <jeffy.chen@rock-chips.com>
Sat, 19 Aug 2017 01:43:17 +0000 (09:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:21 +0000 (20:51 +0200)
commit447ef990ad9e909443ec16edb837c6e37664f5ba
tree1712bd08467b00306533dd7c0384712bb86cce93
parent454d23797a61c2c7424fb737ec417db7dd22bc60
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 <jeffy.chen@rock-chips.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/earlycon.c