summaryrefslogtreecommitdiffstats
path: root/test/dm/test-main.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-18 20:09:08 -0600
committerSimon Glass <sjg@chromium.org>2017-06-01 07:03:08 -0600
commit19c8205e6887d5e47c7dac6cd85d0376411b5444 (patch)
tree88f5788dbe0ad8ef62df010d636b615ee1ec9dfe /test/dm/test-main.c
parent45a26867e8158d0338ba5b99d21989a72d423209 (diff)
downloadu-boot-19c8205e6887d5e47c7dac6cd85d0376411b5444.tar.gz
u-boot-19c8205e6887d5e47c7dac6cd85d0376411b5444.tar.xz
u-boot-19c8205e6887d5e47c7dac6cd85d0376411b5444.zip
dm: core: Scan the live tree when setting up driver model
When starting up driver model with a live tree we need to scan the tree for devices. Add code to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test-main.c')
-rw-r--r--test/dm/test-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/dm/test-main.c b/test/dm/test-main.c
index f2e0048143..67c0082fb8 100644
--- a/test/dm/test-main.c
+++ b/test/dm/test-main.c
@@ -30,7 +30,7 @@ static int dm_test_init(struct unit_test_state *uts)
gd->dm_root = NULL;
memset(dm_testdrv_op_count, '\0', sizeof(dm_testdrv_op_count));
- ut_assertok(dm_init());
+ ut_assertok(dm_init(false));
dms->root = dm_root();
return 0;
@@ -137,7 +137,7 @@ static int dm_test_main(const char *test_name)
printf("Failures: %d\n", uts->fail_count);
gd->dm_root = NULL;
- ut_assertok(dm_init());
+ ut_assertok(dm_init(false));
dm_scan_platdata(false);
dm_scan_fdt(gd->fdt_blob, false);