summaryrefslogtreecommitdiff
path: root/board/xilinx/zynqmp
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-01-10 11:48:48 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-01-30 14:28:59 +0100
commitf32e79f1595e4565d3b9af44a7f80efd7f017133 (patch)
treea5c2b36f4d1c401cea55b90aae8691784c1da0d3 /board/xilinx/zynqmp
parent7109930a70da34677fea382cbe062b29b025e208 (diff)
downloadu-boot-f32e79f1595e4565d3b9af44a7f80efd7f017133.tar.gz
arm64: zynqmp: Propagate error value from psu_init()
psu_init() returns int which wasn't declared and checked. The patch is fixing function declarations and code to handle return values properly. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynqmp')
-rw-r--r--board/xilinx/zynqmp/zynqmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c
index 8b6c0ea466..db557e8806 100644
--- a/board/xilinx/zynqmp/zynqmp.c
+++ b/board/xilinx/zynqmp/zynqmp.c
@@ -237,15 +237,16 @@ static char *zynqmp_get_silicon_idcode_name(void)
int board_early_init_f(void)
{
+ int ret = 0;
#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_CLK_ZYNQMP)
zynqmp_pmufw_version();
#endif
#if defined(CONFIG_SPL_BUILD) || defined(CONFIG_ZYNQMP_PSU_INIT_ENABLED)
- psu_init();
+ ret = psu_init();
#endif
- return 0;
+ return ret;
}
#define ZYNQMP_VERSION_SIZE 9