]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: clk: Handle ENODEV from clk_get_rate
authorIsmael Luceno Cortes <ismael.luceno@silicon-gears.com>
Mon, 18 Mar 2019 12:27:32 +0000 (12:27 +0000)
committerMarek Vasut <marex@denx.de>
Sat, 4 May 2019 17:26:49 +0000 (19:26 +0200)
commite8bbb20201e1391c9dc7630cb6182f4953dbbf6e
treeced3c3136b3ee905c0a182903ba19b248f6d8a9c
parentf171ef0a06654b58621c3c6c6e8293f347ebc164
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: 8e405071ecb3 ("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>
cmd/clk.c