commit | 8b5d3a4cc3f6041dc535475f34ed5e3cf1914c1a | [log] [tgz] |
---|---|---|
author | Ismael Luceno Cortes <ismael.luceno@silicon-gears.com> | Mon Mar 18 12:27:32 2019 +0000 |
committer | Marek Vasut <marex@denx.de> | Sat May 04 19:26:49 2019 +0200 |
tree | ced3c3136b3ee905c0a182903ba19b248f6d8a9c | |
parent | 3da5da3da6bc3271dc4e25ee83c9ff6388f1e41f [diff] |
cmd: clk: Handle ENODEV from clk_get_rate clk_get_rate may return -ENODEV if the clock isn't valid. Also, make the error cases go through a single path. Fixes: ff8eee0330a6 ("cmd: clk: Add trivial implementation of clock dump for DM") Signed-off-by: Ismael Luceno <ismael.luceno@silicon-gears.com> Reviewed-by: Matthias Brugger <mbrugger@suse.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com>