clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call
authorAxel Lin <axel.lin@ingics.com>
Sat, 10 Sep 2016 03:47:30 +0000 (11:47 +0800)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 2 Nov 2016 00:44:09 +0000 (17:44 -0700)
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>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/qcom/lcc-ipq806x.c

index db3998e..977e98e 100644 (file)
@@ -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 */