]> git.baikalelectronics.ru Git - uboot.git/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)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Mar 2017 13:27:19 +0000 (07:27 -0600)
commitc4e93014b20e5272ece4f473216d4dfe5dcfaf2c
tree7c9e6bf58d4024c9d9761662c8306b70a48a4cf2
parentd605576b6097a79a74b32b4c317fd7838134cf18
dm: core: Fix Handling of global_data moving in SPL

commit 088ed95badb68 ("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