diff mbox

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

Message ID 1473479250-2225-1-git-send-email-axel.lin@ingics.com (mailing list archive)
State Accepted, archived
Delegated to: Stephen Boyd
Headers show

Commit Message

Axel Lin Sept. 10, 2016, 3:47 a.m. UTC
Drop the assignment of regmap_read return code to val, so the code checks
the value read.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/clk/qcom/lcc-ipq806x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Boyd Sept. 12, 2016, 10:34 p.m. UTC | #1
On 09/10, Axel Lin wrote:
> Drop the assignment of regmap_read return code to val, so the code checks
> the value read.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Looks obviously correct. I'll have to dig up the hardware to test
it though so I'm considering just applying it directly and
assuming there won't be any fallout.
Stephen Boyd Nov. 2, 2016, 12:44 a.m. UTC | #2
On 09/10, Axel Lin wrote:
> Drop the assignment of regmap_read return code to val, so the code checks
> the value read.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---

I never got around to testing it, but it looks correct enough.

Applied to clk-next
diff mbox

Patch

diff --git a/drivers/clk/qcom/lcc-ipq806x.c b/drivers/clk/qcom/lcc-ipq806x.c
index db3998e..977e98e 100644
--- a/drivers/clk/qcom/lcc-ipq806x.c
+++ b/drivers/clk/qcom/lcc-ipq806x.c
@@ -443,7 +443,7 @@  static int lcc_ipq806x_probe(struct platform_device *pdev)
 		return PTR_ERR(regmap);
 
 	/* Configure the rate of PLL4 if the bootloader hasn't already */
-	val = regmap_read(regmap, 0x0, &val);
+	regmap_read(regmap, 0x0, &val);
 	if (!val)
 		clk_pll_configure_sr(&pll4, regmap, &pll4_config, true);
 	/* Enable PLL4 source on the LPASS Primary PLL Mux */