From: Michal Simek Date: Fri, 23 Feb 2018 12:39:37 +0000 (+0100) Subject: arm: zynq: Handle ENXIO error return value properly X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5;p=u-boot.git arm: zynq: Handle ENXIO error return value properly zynq_clk_get_rate() is also returning ENXIO which is not handled now. Signed-off-by: Michal Simek --- diff --git a/arch/arm/mach-zynq/clk.c b/arch/arm/mach-zynq/clk.c index 1369cd095b..3c27038630 100644 --- a/arch/arm/mach-zynq/clk.c +++ b/arch/arm/mach-zynq/clk.c @@ -94,7 +94,8 @@ int soc_clk_dump(void) clk_free(&clk); - if (rate == (unsigned long)-ENOSYS) + if ((rate == (unsigned long)-ENOSYS) || + (rate == (unsigned long)-ENXIO)) printf("%10s%20s\n", name, "unknown"); else printf("%10s%20lu\n", name, rate);