diff options
-rw-r--r-- | util/comm-dev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/comm-dev.c b/util/comm-dev.c index 94a5cdde52..96356a6177 100644 --- a/util/comm-dev.c +++ b/util/comm-dev.c @@ -187,9 +187,9 @@ static int ec_readmem_dev_v2(int offset, int bytes, void *dest) r_mem.offset = offset; r_mem.size = bytes; - return ec_command_dev(EC_CMD_READ_MEMMAP, 0, - &r_mem, sizeof(r_mem), - dest, bytes); + return ec_command_dev_v2(EC_CMD_READ_MEMMAP, 0, + &r_mem, sizeof(r_mem), + dest, bytes); } /* |