Skip to content
Snippets Groups Projects
Commit b0d9512a authored by Lokesh Vutla's avatar Lokesh Vutla Committed by Simon Glass
Browse files

dm: core: Fix Handling of global_data moving in SPL


commit 2f11cd91 ("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: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
parent 5877d8f3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment