summaryrefslogtreecommitdiff
path: root/board/ti/am65x
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2020-01-08 02:12:40 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2020-01-20 07:40:28 +0300
commit28b90a46565adc0ff6c426f4ea84def2d38ef0f6 (patch)
treeed1ee662c84c4323c2ff5401445705b650d77aa2 /board/ti/am65x
parent60c8e50452ef5a46c870d66244bc56f12154efcb (diff)
downloadu-boot-28b90a46565adc0ff6c426f4ea84def2d38ef0f6.tar.xz
arm: mach-k3: Warn when node to disable is not found
Not finding a node that we try to disable does not always need to be fatal to boot but should at least print out a warning. Return error from fdt_disable_node as it did fail to disable the node, but only warn in the case of disabling the TRNG as this will not prevent boot. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'board/ti/am65x')
-rw-r--r--board/ti/am65x/evm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/board/ti/am65x/evm.c b/board/ti/am65x/evm.c
index 4d86757c39..a610879424 100644
--- a/board/ti/am65x/evm.c
+++ b/board/ti/am65x/evm.c
@@ -105,10 +105,8 @@ int ft_board_setup(void *blob, bd_t *bd)
#if defined(CONFIG_TI_SECURE_DEVICE)
/* Make HW RNG reserved for secure world use */
ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
- if (ret) {
+ if (ret)
printf("%s: disabling TRGN failed %d\n", __func__, ret);
- return ret;
- }
#endif
return 0;