提交 74a484ce 编写于 作者: A Axel Lin 提交者: Stephen Boyd

clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call

Drop the assignment of regmap_read return code to val, so the code checks
the value read.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
上级 42134fa2
...@@ -443,7 +443,7 @@ static int lcc_ipq806x_probe(struct platform_device *pdev) ...@@ -443,7 +443,7 @@ static int lcc_ipq806x_probe(struct platform_device *pdev)
return PTR_ERR(regmap); return PTR_ERR(regmap);
/* Configure the rate of PLL4 if the bootloader hasn't already */ /* Configure the rate of PLL4 if the bootloader hasn't already */
val = regmap_read(regmap, 0x0, &val); regmap_read(regmap, 0x0, &val);
if (!val) if (!val)
clk_pll_configure_sr(&pll4, regmap, &pll4_config, true); clk_pll_configure_sr(&pll4, regmap, &pll4_config, true);
/* Enable PLL4 source on the LPASS Primary PLL Mux */ /* Enable PLL4 source on the LPASS Primary PLL Mux */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册