summaryrefslogtreecommitdiffstats
path: root/common/cmd_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_read.c')
-rw-r--r--common/cmd_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_read.c b/common/cmd_read.c
index f0fc9bfe17..8710288781 100644
--- a/common/cmd_read.c
+++ b/common/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, offset + blk, cnt, addr) < 0) {
+ if (dev_desc->block_read(dev_desc, offset + blk, cnt, addr) < 0) {
printf("Error reading blocks\n");
return 1;
}
OpenPOWER on IntegriCloud