aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynq
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-02-23 13:39:37 +0100
committerMichal Simek <michal.simek@xilinx.com>2018-04-09 08:02:50 +0200
commit7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5 (patch)
tree197a06b2de4fba231163c29e0efb5a41ab35b73f /arch/arm/mach-zynq
parent1d4fc9ef1fb1e5030e201e79d743a0eec888dbeb (diff)
downloadu-boot-7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5.zip
u-boot-7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5.tar.gz
u-boot-7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5.tar.bz2
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 <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynq')
-rw-r--r--arch/arm/mach-zynq/clk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-zynq/clk.c b/arch/arm/mach-zynq/clk.c
index 1369cd0..3c27038 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);