Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74a484ce authored by Axel Lin's avatar Axel Lin Committed by Stephen Boyd
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 */