Skip to content
Commit 80b44fb3 authored by Ismael Luceno Cortes's avatar Ismael Luceno Cortes Committed by Marek Vasut
Browse files

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: ff8eee03 ("cmd: clk: Add trivial implementation of clock dump
	for DM")

Signed-off-by: default avatarIsmael Luceno <ismael.luceno@silicon-gears.com>
Reviewed-by: default avatarMatthias Brugger <mbrugger@suse.com>
Reviewed-by: default avatarMarek Vasut <marek.vasut@gmail.com>
parent 4862830b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment