summaryrefslogtreecommitdiff
path: root/common/board_r.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:27:19 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 22:43:43 -0400
commitee88ba71acce3455aadef18c725de715e6c9af21 (patch)
tree4c890e0501c5fdba9acf6a28407879ebc1dc659b /common/board_r.c
parent66d0d0c188db9e816c5b18e8823a8d8bf5e9cd63 (diff)
dm: core: Provide a way to reset the device tree
At present there is only one device tree used by the ofnode functions, except for some esoteric use of live tree. In preparation for supporting more than one, add a way to reset the list of device trees. For now this does nothing. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 50670b5615a..6e1ad2bfce8 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -234,6 +234,8 @@ static int initr_dm(void)
{
int ret;
+ oftree_reset();
+
/* Save the pre-reloc driver model and start a new one */
gd->dm_root_f = gd->dm_root;
gd->dm_root = NULL;