clk: Remove clock ID check in .get_rate() of clk_fixed_*
authorLukasz Majewski <lukma@denx.de>
Mon, 24 Jun 2019 13:50:37 +0000 (15:50 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:50:30 +0000 (14:50 +0200)
commitec8f1c02dd0c2e8b7302072b3956a9c56139a139
tree2b5b7146592ffa5ea6798aee1dd4535fcccafc18
parenta9092710c5821c4b0d95559c788f13d6804cbd63
clk: Remove clock ID check in .get_rate() of clk_fixed_*

This check requires the struct clk passed to .get_rate() to be always
cleared out as any clock with valid ID causes -EINVAL return value.

The return code of fixed clocks shall always be returned.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_fixed_factor.c
drivers/clk/clk_fixed_rate.c