[PATCH 25/26] dm: core: Allow the uclass list to move

Simon Glass
2020-12-28T16:26:14Z

At present the uclass list head is in global_data. This is convenient
but with the new of-platdata we need the list head to be declared by
the generated code.

Change this over to be a pointer. Provide a 'static' version in
global_data to retain the current behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

drivers/core/device.c | 4 ++--
drivers/core/root.c | 7 ++++---
drivers/core/uclass.c | 4 ++--
include/asm-generic/global_data.h | 8 +++++++-
include/dm/device-internal.h | 1 +
test/dm/core.c | 6 +++---
6 files changed, 19 insertions(+), 11 deletions(-)

Applied to u-boot-dm/next, thanks!