aboutsummaryrefslogtreecommitdiff
path: root/board/st
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-08-02 13:08:06 +0200
committerPatrice Chotard <patrice.chotard@st.com>2019-08-27 11:19:23 +0200
commitff6618e9b244ca98c744044123e47986839c5d9b (patch)
tree215ae56d2f3b24e303a127f214b802d888fe482d /board/st
parent19efa395569963c0dcde9441ae877ce57c65f8f1 (diff)
downloadu-boot-ff6618e9b244ca98c744044123e47986839c5d9b.zip
u-boot-ff6618e9b244ca98c744044123e47986839c5d9b.tar.gz
u-boot-ff6618e9b244ca98c744044123e47986839c5d9b.tar.bz2
stm32mp1: update sysconf_init on misc_read result
Update management of misc_read in sysconf_init, which now return length of data 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index d994d38..95e6078 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -487,7 +487,7 @@ static void sysconf_init(void)
}
ret = misc_read(dev, STM32_BSEC_SHADOW(18), &otp, 4);
- if (!ret)
+ if (ret > 0)
otp = otp & BIT(13);
/* get VDD = vdd-supply */