summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-23 12:55:00 (GMT)
committerSimon Glass <sjg@chromium.org>2014-07-23 13:07:24 (GMT)
commit7497812d47d4ad17172ec373469a33a6ab8b257e (patch)
tree8275d58ac9dcc129fdba9371be522b999c11e305 /test/dm
parent709ea543b92489e7729d2d7ddd6c9f451e52158c (diff)
downloadu-boot-7497812d47d4ad17172ec373469a33a6ab8b257e.tar.xz
dm: Make sure that the root device is probed
The root device should be probed just like any other device. The effect of this is to mark the device as activated, so that it can be removed (along with its children) if required. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'test/dm')
-rw-r--r--test/dm/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/core.c b/test/dm/core.c
index be3646b..8c18780 100644
--- a/test/dm/core.c
+++ b/test/dm/core.c
@@ -106,7 +106,7 @@ static int dm_test_autoprobe(struct dm_test_state *dms)
ut_asserteq(0, dm_testdrv_op_count[DM_TEST_OP_POST_PROBE]);
/* The root device should not be activated until needed */
- ut_assert(!(dms->root->flags & DM_FLAG_ACTIVATED));
+ ut_assert(dms->root->flags & DM_FLAG_ACTIVATED);
/*
* We should be able to find the three test devices, and they should