diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-08-02 13:08:05 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-08-27 11:19:23 +0200 |
commit | 19efa395569963c0dcde9441ae877ce57c65f8f1 (patch) | |
tree | 19a701e3bd775ca80191f797344ada84b34b9409 /board/st | |
parent | ef32dcf1195efba19e896f993a6bc4882280f081 (diff) | |
download | u-boot-19efa395569963c0dcde9441ae877ce57c65f8f1.tar.gz |
stm32mp1: update test on misc_read result
Update the stm32mp1 baord after the commit 8729b1ae2cbd
("misc: Update read() and write() methods to return bytes xfered")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'board/st')
-rw-r--r-- | board/st/stm32mp1/stm32mp1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 654c48940b..d994d386b5 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -103,7 +103,7 @@ int checkboard(void) if (!ret) ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD), &otp, sizeof(otp)); - if (!ret && otp) { + if (ret > 0 && otp) { printf("Board: MB%04x Var%d Rev.%c-%02d\n", otp >> 16, (otp >> 12) & 0xF, |