powerpc: Look for "stdout-path" when setting up legacy consoles
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 30 Nov 2018 03:54:09 +0000 (14:54 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Dec 2018 18:19:52 +0000 (19:19 +0100)
commitc97c353e5f298be520c0154fd06fb36c7223dfd1
tree2ff3b167968cdece3f42b33fe020def94ec82477
parent73732de1579f535a7d8a9dd77a0e2b56ca6d11b4
powerpc: Look for "stdout-path" when setting up legacy consoles

commit bf3d6afbb234156749b640b6c50f714967a85964 upstream.

Commit 78e5dfea84dc ("powerpc: dts: replace 'linux,stdout-path' with
'stdout-path'") broke the default console on a number of embedded
PowerPC systems, because it failed to also update the code in
arch/powerpc/kernel/legacy_serial.c to look for that property in
addition to the old one.

This fixes it.

Fixes: 78e5dfea84dc ("powerpc: dts: replace 'linux,stdout-path' with 'stdout-path'")
Cc: stable@vger.kernel.org # v4.17+
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/legacy_serial.c