summaryrefslogtreecommitdiff
path: root/cmd/read.c
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2017-08-04 16:34:39 -0600
committerTom Rini <[email protected]>2017-08-11 15:41:53 -0400
commitb75dfd2d4675e660ab20806641a063cdb65e99a0 (patch)
tree3c9c226c8cf36c4487a610e7291e2643b4d262cb /cmd/read.c
parent6f62d7c4f7a2242a76e19b09dccca6f68776e788 (diff)
Kconfig: Convert CMD_READ to Kconfig
Convert this option and enable it in sandbox. Also correct a bug which was introduced with the block-device driver model conversion. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Bin Meng <[email protected]> Reviewed-by: Philipp Tomsich <[email protected]>
Diffstat (limited to 'cmd/read.c')
-rw-r--r--cmd/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/read.c b/cmd/read.c
index 61d8ce73e49..ecf925426fc 100644
--- a/cmd/read.c
+++ b/cmd/read.c
@@ -66,7 +66,7 @@ int do_read(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
return 1;
}
- if (blk_read(dev_desc, offset + blk, cnt, addr) < 0) {
+ if (blk_dread(dev_desc, offset + blk, cnt, addr) < 0) {
printf("Error reading blocks\n");
return 1;
}