diff options
author | Taniya Das <tdas@codeaurora.org> | 2019-11-15 11:04:57 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-12-24 07:30:09 +0100 |
commit | 1dc3698354dd620a121c1ff8e165c88abaf9300c (patch) | |
tree | 71510b347ef04678eb7163d88a276ce85be6f35c /drivers/clk | |
parent | clk: qcom: Add missing msm8998 gcc_bimc_gfx_clk (diff) | |
download | linux-1dc3698354dd620a121c1ff8e165c88abaf9300c.tar.xz linux-1dc3698354dd620a121c1ff8e165c88abaf9300c.zip |
clk: qcom: alpha-pll: Remove useless read from set rate
PLL_MODE read in fabia set rate is not required, thus remove the same.
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Link: https://lkml.kernel.org/r/1573812304-24074-2-git-send-email-tdas@codeaurora.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/qcom/clk-alpha-pll.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/clk/qcom/clk-alpha-pll.c b/drivers/clk/qcom/clk-alpha-pll.c index 9228b7b1f56e..46c9a3d8a4ad 100644 --- a/drivers/clk/qcom/clk-alpha-pll.c +++ b/drivers/clk/qcom/clk-alpha-pll.c @@ -1149,14 +1149,9 @@ static int alpha_pll_fabia_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate) { struct clk_alpha_pll *pll = to_clk_alpha_pll(hw); - u32 val, l, alpha_width = pll_alpha_width(pll); + u32 l, alpha_width = pll_alpha_width(pll); u64 a; unsigned long rrate; - int ret = 0; - - ret = regmap_read(pll->clkr.regmap, PLL_MODE(pll), &val); - if (ret) - return ret; rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); |