of: Fix premature bootconsole disable with 'stdout-path'
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 1 Mar 2015 17:21:22 +0000 (12:21 -0500)
committerRob Herring <robh@kernel.org>
Tue, 10 Mar 2015 15:27:21 +0000 (10:27 -0500)
commit2fa645cb2703d9b3786d850db815414dfeefa51d
tree66607f387502f0a31385873ae0812901e5e2b773
parent2c192699a7050ef5bdf1e2cc95fdddfbcf524509
of: Fix premature bootconsole disable with 'stdout-path'

Support for devicetree serial consoles via 'stdout-path' causes
bootconsoles to be disabled when the vt dummy console loads, since
there is no preferred console (the preferred console is not added
until the device is probed).

Ensure there is at least a preferred console, even if never matched.

Requires: "console: Fix console name size mismatch"
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c