summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:16 +1300
committerSimon Glass <sjg@chromium.org>2021-03-22 19:23:28 +1300
commit3fa9f553c0c0418b9abf93c2f33a44c98380beaf (patch)
treea9a8b64005dcee9706af7e1400852cd4765864af /include/dm
parent1ef3af3b2717aba9db79879274ab5e1f1d7b2d25 (diff)
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/dm')
-rw-r--r--include/dm/root.h3
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
*