mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-28 15:13:31 +08:00
ARM: stm32mp: skip ft_system_setup when the soc node is absent
The function ft_system_setup shouldn't return an error when the /soc node is absent in the provided device tree but just skip the updates. This patch solves an issue when the U-Boot pytest is executed on board. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
parent
5367b67be4
commit
6a69eaf6f4
@ -260,6 +260,9 @@ int ft_system_setup(void *blob, struct bd_info *bd)
|
||||
char name[SOC_NAME_SIZE];
|
||||
|
||||
soc = fdt_path_offset(blob, "/soc");
|
||||
/* when absent, nothing to do */
|
||||
if (soc == -FDT_ERR_NOTFOUND)
|
||||
return 0;
|
||||
if (soc < 0)
|
||||
return soc;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user