Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "of: Fix premature bootconsole disable with 'stdout-path'"

This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d.

The assumption that at least 1 preferred console will be registered
when the stdout-path property is set is invalid, which can result
in _no_ consoles.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Peter Hurley and committed by
Rob Herring
f64255b5 721a09e9

+1 -3
+1 -3
drivers/of/base.c
··· 1888 1888 name = of_get_property(of_chosen, "linux,stdout-path", NULL); 1889 1889 if (IS_ENABLED(CONFIG_PPC) && !name) 1890 1890 name = of_get_property(of_aliases, "stdout", NULL); 1891 - if (name) { 1891 + if (name) 1892 1892 of_stdout = of_find_node_opts_by_path(name, &of_stdout_options); 1893 - add_preferred_console("stdout-path", 0, NULL); 1894 - } 1895 1893 } 1896 1894 1897 1895 if (!of_aliases)