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>
master
Michal Simek 7 years ago
parent 1d4fc9ef1f
commit 7ad6d9a4ad
  1. 3
      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);

Loading…
Cancel
Save