dm: core: Allow the uclass list to move
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:17 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
commit8a715530bb1f9522030757379415b174f3109951
tree91422fb39012c35377fe8a50c772fb79634aba07
parent49bbe6eab5babbc353f1dc76e6275671c69dffb2
dm: core: Allow the uclass list to move

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
drivers/core/root.c
drivers/core/uclass.c
include/asm-generic/global_data.h
include/dm/device-internal.h
test/dm/core.c