projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rockchip: clk: bind reset driver
[oweals/u-boot.git]
/
cmd
/
read.c
diff --git
a/cmd/read.c
b/cmd/read.c
index f8d766a7139a8858eb39937a0d4021d0b7a04c85..82c2d9ad994ed1800c9c757b915ba67a018b8251 100644
(file)
--- 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 (
dev_desc->block_read(dev_desc, offset + blk, cnt, addr) < 0
) {
+ if (
blk_dread(dev_desc, offset + blk, cnt, addr) != cnt
) {
printf("Error reading blocks\n");
return 1;
}