summaryrefslogtreecommitdiff
path: root/test/dm/test-fdt.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-10-15 12:20:58 +0300
committerSimon Glass <sjg@chromium.org>2018-11-14 20:16:27 +0300
commitd92878aa4089e1c91f8a6cb7b9655cd27e6ea23c (patch)
treee9f5a5a6d0d6cedeadda52da4cc8a38e26163289 /test/dm/test-fdt.c
parent651d0c019a428ca8b14352210c1ce7804dd51fae (diff)
downloadu-boot-d92878aa4089e1c91f8a6cb7b9655cd27e6ea23c.tar.xz
test: dm: core: Add test case for uclass driver's child_post_probe()
Add test case to cover uclass driver's child_post_probe() method. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test-fdt.c')
-rw-r--r--test/dm/test-fdt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/dm/test-fdt.c b/test/dm/test-fdt.c
index 3da384f4c5..e43acb21d5 100644
--- a/test/dm/test-fdt.c
+++ b/test/dm/test-fdt.c
@@ -55,10 +55,13 @@ static int testfdt_drv_probe(struct udevice *dev)
/*
* If this device is on a bus, the uclass_flag will be set before
- * calling this function. This is used by
- * dm_test_bus_child_pre_probe_uclass().
+ * calling this function. In the meantime the uclass_postp is
+ * initlized to a value -1. These are used respectively by
+ * dm_test_bus_child_pre_probe_uclass() and
+ * dm_test_bus_child_post_probe_uclass().
*/
priv->uclass_total += priv->uclass_flag;
+ priv->uclass_postp = -1;
return 0;
}