nvmem: imx-ocotp: Fix return value of imx_ocotp_read

imx_ocotp_read() should return 0 on success.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Axel Lin 2016-02-22 11:23:52 +00:00 • committed by Greg Kroah-Hartman
commit c7e3c5f861

View file

@ -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)