Skip to content

Commit

Permalink
nvmem: imx-ocotp: Fix return value of imx_ocotp_read
Browse files Browse the repository at this point in the history
imx_ocotp_read() should return 0 on success.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Axel Lin authored and Greg Kroah-Hartman committed Mar 5, 2016
1 parent 5685e24 commit c7e3c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvmem/imx-ocotp.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int imx_ocotp_read(void *context, const void *reg, size_t reg_size,
val += 4;
}

return (i - index) * 4;
return 0;
}

static int imx_ocotp_write(void *context, const void *data, size_t count)
Expand Down

0 comments on commit c7e3c5f

Please sign in to comment.