Skip to content

Commit

Permalink
clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call
Browse files Browse the repository at this point in the history
Drop the assignment of regmap_read return code to val, so the code checks
the value read.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
AxelLin authored and bebarino committed Nov 2, 2016
1 parent 42134fa commit 74a484c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/qcom/lcc-ipq806x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 74a484c

Please sign in to comment.