diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 17:25:16 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-22 19:23:28 +1300 |
commit | 3fa9f553c0c0418b9abf93c2f33a44c98380beaf (patch) | |
tree | a9a8b64005dcee9706af7e1400852cd4765864af /include | |
parent | 1ef3af3b2717aba9db79879274ab5e1f1d7b2d25 (diff) | |
download | u-boot-3fa9f553c0c0418b9abf93c2f33a44c98380beaf.tar.gz |
dm: core: Adjust uclass setup with of-platdata
When OF_PLATDATA_INST is enabled we don't need to create the uclass list.
Instead we just need to point to the existing list. Update the code
accordingly.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/root.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dm/root.h b/include/dm/root.h index 89afbee619..42510b106a 100644 --- a/include/dm/root.h +++ b/include/dm/root.h @@ -11,6 +11,9 @@ struct udevice; +/* Head of the uclass list if CONFIG_OF_PLATDATA_INST is enabled */ +extern struct list_head uclass_head; + /** * dm_root() - Return pointer to the top of the driver tree * |