Commit 74a484ce authored by Axel Lin's avatar Axel Lin Committed by 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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment