Skip to content
Commit 7dbe5849 authored by Laurentiu Tudor's avatar Laurentiu Tudor Committed by Grant Likely
Browse files

of: make sure of_alias is initialized before accessing it

Simply swap of_alias and of_chosen initialization so
that of_alias ends up read first. This must be done
because it is accessed couple of lines below when
trying to initialize the of_stdout using the alias
based legacy method.

[Fixes a752ee56

 - tty: Update hypervisor tty drivers to
use core stdout parsing code]

Signed-off-by: default avatarLaurentiu Tudor <Laurentiu.Tudor@freescale.com>
[glikely: Don't move the 'if (!of_aliases)' test]
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent b9c74fd7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment