diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-07 17:34:57 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-12 09:57:30 -0500 |
commit | 4a467c6de6765a9685d1e3ced95ce141a14dfcf3 (patch) | |
tree | 9a6bc1cf452761b933013192ee8eb638cfe98ece /test/dm/test-driver.c | |
parent | 72b524cf426697e764c9c63611d0f6743f50f0f5 (diff) | |
download | u-boot-4a467c6de6765a9685d1e3ced95ce141a14dfcf3.tar.gz |
test: Drop struct dm_test_state
Driver model is a core part of U-Boot. We don't really need to have a
separate test structure for the driver model tests and it makes it harder
to write a test if you have to think about which type of test it is.
Subsume the fields from struct dm_test_state into struct unit_test_state
and delete the former.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test-driver.c')
-rw-r--r-- | test/dm/test-driver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/dm/test-driver.c b/test/dm/test-driver.c index ca7626a066..63dc9d335a 100644 --- a/test/dm/test-driver.c +++ b/test/dm/test-driver.c @@ -116,10 +116,8 @@ static int test_manual_bind(struct udevice *dev) static int test_manual_probe(struct udevice *dev) { - struct dm_test_state *dms = uts->priv; - dm_testdrv_op_count[DM_TEST_OP_PROBE]++; - if (!dms->force_fail_alloc) + if (!uts->force_fail_alloc) dev_set_priv(dev, calloc(1, sizeof(struct dm_test_priv))); if (!dev_get_priv(dev)) return -ENOMEM; |