diff options
| -rw-r--r-- | drivers/of/base.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 0a8aeb8523fe..3b1aa08bf5f3 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
| @@ -1886,8 +1886,10 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)) | |||
| 1886 | name = of_get_property(of_chosen, "linux,stdout-path", NULL); | 1886 | name = of_get_property(of_chosen, "linux,stdout-path", NULL); |
| 1887 | if (IS_ENABLED(CONFIG_PPC) && !name) | 1887 | if (IS_ENABLED(CONFIG_PPC) && !name) |
| 1888 | name = of_get_property(of_aliases, "stdout", NULL); | 1888 | name = of_get_property(of_aliases, "stdout", NULL); |
| 1889 | if (name) | 1889 | if (name) { |
| 1890 | of_stdout = of_find_node_opts_by_path(name, &of_stdout_options); | 1890 | of_stdout = of_find_node_opts_by_path(name, &of_stdout_options); |
| 1891 | add_preferred_console("stdout-path", 0, NULL); | ||
| 1892 | } | ||
| 1891 | } | 1893 | } |
| 1892 | 1894 | ||
| 1893 | if (!of_aliases) | 1895 | if (!of_aliases) |
