From: Axel Lin Date: Sat, 10 Sep 2016 03:47:30 +0000 (+0800) Subject: clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=74a484ced26d802ce7fbca86f3205e1c69e27269;p=linux-beck.git 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 --- 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 */