Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Taniya Das and committed by
Stephen Boyd
1dc36983 db2c7c0a

+1 -6
+1 -6
drivers/clk/qcom/clk-alpha-pll.c
··· 1149 1149 unsigned long prate) 1150 1150 { 1151 1151 struct clk_alpha_pll *pll = to_clk_alpha_pll(hw); 1152 - u32 val, l, alpha_width = pll_alpha_width(pll); 1152 + u32 l, alpha_width = pll_alpha_width(pll); 1153 1153 u64 a; 1154 1154 unsigned long rrate; 1155 - int ret = 0; 1156 - 1157 - ret = regmap_read(pll->clkr.regmap, PLL_MODE(pll), &val); 1158 - if (ret) 1159 - return ret; 1160 1155 1161 1156 rrate = alpha_pll_round_rate(rate, prate, &l, &a, alpha_width); 1162 1157