From 74a484ced26d802ce7fbca86f3205e1c69e27269 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 10 Sep 2016 11:47:30 +0800 Subject: [PATCH] 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: Axel Lin Signed-off-by: Stephen Boyd --- drivers/clk/qcom/lcc-ipq806x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/lcc-ipq806x.c b/drivers/clk/qcom/lcc-ipq806x.c index db3998e5e2d8..977e98eadbeb 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 */ -- 2.20.1