]> git.sur5r.net Git - u-boot/commit
dm: core: Fix Handling of global_data moving in SPL
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 13 Feb 2017 03:51:22 +0000 (09:21 +0530)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:38:07 +0000 (07:38 +0200)
commitd666558042a0272de3f38607ce15088e0d4c88b0
tree7c9e6bf58d4024c9d9761662c8306b70a48a4cf2
parent7a92652346b0a06566c2ed00107fae24efc386ba
dm: core: Fix Handling of global_data moving in SPL

commit 2f11cd9121658 ("dm: core: Handle global_data moving in SPL")
handles relocation of GD in SPL if spl_init() is called before
board_init_r(). So, uclass_root.next need not be initialized always
and accessing uclass_root.next->prev gives an abort. Update the
uclass_root only if it is available.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/core/root.c