diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/of/base.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 418a4ff9d97c..be2861d69b02 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
@@ -1955,9 +1955,9 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)) | |||
1955 | of_chosen = of_find_node_by_path("/chosen@0"); | 1955 | of_chosen = of_find_node_by_path("/chosen@0"); |
1956 | 1956 | ||
1957 | if (of_chosen) { | 1957 | if (of_chosen) { |
1958 | const char *name; | 1958 | const char *name = of_get_property(of_chosen, "stdout-path", NULL); |
1959 | 1959 | if (!name) | |
1960 | name = of_get_property(of_chosen, "linux,stdout-path", NULL); | 1960 | name = of_get_property(of_chosen, "linux,stdout-path", NULL); |
1961 | if (name) | 1961 | if (name) |
1962 | of_stdout = of_find_node_by_path(name); | 1962 | of_stdout = of_find_node_by_path(name); |
1963 | } | 1963 | } |