mirror of
https://github.com/frank-w/u-boot.git
synced 2026-01-08 17:32:59 +08:00
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 8729b1ae2c ("misc: Update read()
and write() methods to return bytes xfered")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
19efa39556
commit
ff6618e9b2
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user