aboutsummaryrefslogtreecommitdiff
path: root/test/dm/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dm/usb.c')
-rw-r--r--test/dm/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/usb.c b/test/dm/usb.c
index 09961850491..2d203541786 100644
--- a/test/dm/usb.c
+++ b/test/dm/usb.c
@@ -50,7 +50,7 @@ static int dm_test_usb_flash(struct unit_test_state *uts)
/* Read a few blocks and look for the string we expect */
ut_asserteq(512, dev_desc->blksz);
memset(cmp, '\0', sizeof(cmp));
- ut_asserteq(2, dev_desc->block_read(dev_desc, 0, 2, cmp));
+ ut_asserteq(2, blk_dread(dev_desc, 0, 2, cmp));
ut_assertok(strcmp(cmp, "this is a test"));
return 0;