diff options
author | Lukasz Majewski <lukma@denx.de> | 2019-06-24 15:50:37 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2019-07-19 14:50:30 +0200 |
commit | ec8f1c02dd0c2e8b7302072b3956a9c56139a139 (patch) | |
tree | 2b5b7146592ffa5ea6798aee1dd4535fcccafc18 /drivers/clk/clk_fixed_factor.c | |
parent | a9092710c5821c4b0d95559c788f13d6804cbd63 (diff) | |
download | u-boot-ec8f1c02dd0c2e8b7302072b3956a9c56139a139.tar.gz u-boot-ec8f1c02dd0c2e8b7302072b3956a9c56139a139.tar.bz2 u-boot-ec8f1c02dd0c2e8b7302072b3956a9c56139a139.zip |
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>
Diffstat (limited to 'drivers/clk/clk_fixed_factor.c')
-rw-r--r-- | drivers/clk/clk_fixed_factor.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/clk/clk_fixed_factor.c b/drivers/clk/clk_fixed_factor.c index 5fa20a84db..dcdb6ddf5c 100644 --- a/drivers/clk/clk_fixed_factor.c +++ b/drivers/clk/clk_fixed_factor.c @@ -24,9 +24,6 @@ static ulong clk_fixed_factor_get_rate(struct clk *clk) uint64_t rate; struct clk_fixed_factor *ff = to_clk_fixed_factor(clk->dev); - if (clk->id != 0) - return -EINVAL; - rate = clk_get_rate(&ff->parent); if (IS_ERR_VALUE(rate)) return rate; |