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>
This commit is contained in:
Michal Simek 2018-02-23 13:39:37 +01:00
parent 1d4fc9ef1f
commit 7ad6d9a4ad

View File

@ -94,7 +94,8 @@ int soc_clk_dump(void)
clk_free(&clk); clk_free(&clk);
if (rate == (unsigned long)-ENOSYS) if ((rate == (unsigned long)-ENOSYS) ||
(rate == (unsigned long)-ENXIO))
printf("%10s%20s\n", name, "unknown"); printf("%10s%20s\n", name, "unknown");
else else
printf("%10s%20lu\n", name, rate); printf("%10s%20lu\n", name, rate);