diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-02-23 13:39:37 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-04-09 08:02:50 +0200 |
commit | 7ad6d9a4ad8a9cbe116647b7613aaec7c263fcf5 (patch) | |
tree | 197a06b2de4fba231163c29e0efb5a41ab35b73f /arch/arm/mach-zynq | |
parent | 1d4fc9ef1fb1e5030e201e79d743a0eec888dbeb (diff) | |
download | u-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.c | 3 |
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); |