commit | 02ba17fb3598f8f6e270c2fc1d883d3cf1578414 | [log] [tgz] |
---|---|---|
author | Lokesh Vutla <lokeshvutla@ti.com> | Mon Feb 13 09:21:22 2017 +0530 |
committer | Simon Glass <sjg@chromium.org> | Wed Mar 22 07:27:19 2017 -0600 |
tree | 7c9e6bf58d4024c9d9761662c8306b70a48a4cf2 | |
parent | 35a825d3f6d90eed977b364d85280cc53fff0d55 [diff] |
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>