]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit6c3bea26cf885e3eb3676a69c0d9f2376bfbd4cc
tree91422fb39012c35377fe8a50c772fb79634aba07
parenta1326a02f95240fd138ac1854d5a2bb3dd238fb5
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