]> git.baikalelectronics.ru Git - kernel.git/commit
of: make sure of_alias is initialized before accessing it
authorLaurentiu Tudor <b10716@freescale.com>
Wed, 27 Aug 2014 14:09:39 +0000 (17:09 +0300)
committerGrant Likely <grant.likely@linaro.org>
Mon, 8 Sep 2014 14:57:26 +0000 (15:57 +0100)
commit237e1e9251fb9eedd8b371708b3c75ddd2a5b883
tree9671581b49986f4fedaafe72b8ca45c949e7ab54
parentb51882d39d708819f3da96b7e89f11689fd5ce3a
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 3f15144 - tty: Update hypervisor tty drivers to
use core stdout parsing code]

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
[glikely: Don't move the 'if (!of_aliases)' test]
Signed-off-by: Grant Likely <grant.likely@linaro.org>
drivers/of/base.c