mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-18 13:16:59 +02:00
xilinx: zynqmp: Check return value from xilinx_pm_request()
xilinx_pm_request() can failed that's why also check return value.
Fixes: 050f10f103
("xilinx: zynqmp: remove chip_id function")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
f149b39ca3
commit
d026aa1de3
@ -192,7 +192,11 @@ static char *zynqmp_get_silicon_idcode_name(void)
|
||||
u32 ret_payload[PAYLOAD_ARG_CNT];
|
||||
int ret;
|
||||
|
||||
xilinx_pm_request(PM_GET_CHIPID, 0, 0, 0, 0, ret_payload);
|
||||
ret = xilinx_pm_request(PM_GET_CHIPID, 0, 0, 0, 0, ret_payload);
|
||||
if (ret) {
|
||||
debug("%s: Getting chipid failed\n", __func__);
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
/*
|
||||
* Firmware returns:
|
||||
|
Loading…
Reference in New Issue
Block a user