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:
Patrick Delaunay
2019-08-02 13:08:06 +02:00
committed by Patrice Chotard
parent 19efa39556
commit ff6618e9b2

View File

@@ -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 */