commit | d56fff3aa0f07fa7e7a3395767a6a8b01b635bc0 | [log] [tgz] |
---|---|---|
author | Yann Gautier <yann.gautier@foss.st.com> | Tue Apr 05 15:16:28 2022 +0200 |
committer | Yann Gautier <yann.gautier@st.com> | Tue Apr 05 17:05:55 2022 +0200 |
tree | 12457ce8b505ea79f73425e715976e3e42d57b84 | |
parent | 972221c893d493709baaaa3f023c8ac86f939716 [diff] |
fix(st-clock): correct stm32_clk_parse_fdt_by_name The fdt_getprop() function sets the length to -1 if the property is not found. We should then not use it later in stm32_clk_parse_fdt_by_name() in that case. Directly set *nb to 0U and return 0 if the property is not found. Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I19c5c953f392cdc768e0b1f3f240fc99a73a049c