提交 ff6618e9 编写于 作者: P Patrick Delaunay 提交者: Patrice Chotard

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 8729b1ae ("misc: Update read()
and write() methods to return bytes xfered")
Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
上级 19efa395
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册