Ismael Luceno Cortes 80b44fb376 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>
2019-05-04 19:26:49 +02:00
..
2019-04-22 12:06:39 -04:00
2019-04-22 12:06:39 -04:00
2019-04-22 12:06:39 -04:00
2017-02-08 15:56:28 -05:00
2018-08-11 09:16:08 +02:00
2017-07-03 17:35:28 -04:00
2018-05-23 17:30:05 -04:00
2018-12-04 19:44:57 +01:00
2018-09-25 21:49:18 -04:00
2019-02-19 08:55:43 -05:00
2018-09-23 21:55:30 +02:00
2019-05-02 18:17:50 +02:00
2019-04-22 12:06:39 -04:00
2017-08-16 08:30:24 -04:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2018-11-16 16:51:56 -05:00
2018-05-08 09:07:35 -04:00
2019-03-25 17:36:53 -04:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2019-01-15 15:28:44 -05:00
2018-09-28 20:22:36 -04:00
2019-04-12 07:04:18 +02:00
2018-07-02 14:14:20 -05:00
2019-01-15 15:28:44 -05:00