clk: qcom: lcc-msm8960: Fix PLL rate detection
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 29 Jan 2015 23:38:12 +0000 (15:38 -0800)
committerMichael Turquette <mturquette@linaro.org>
Wed, 25 Feb 2015 20:08:39 +0000 (12:08 -0800)
regmap_read() returns 0 on success, not the value of the register
that is read. Fix it so we properly detect the frequency plan.

Fixes: b82875ee07e5 "clk: qcom: Add MSM8960/APQ8064 LPASS clock
controller (LCC) driver"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/qcom/lcc-msm8960.c

index 705e4d5bb6c74aeee7f81a7ea1d1e6223b086a2b..3ecade0de9d24f434096adc7512e311804254433 100644 (file)
@@ -547,7 +547,7 @@ static int lcc_msm8960_probe(struct platform_device *pdev)
                return PTR_ERR(regmap);
 
        /* Use the correct frequency plan depending on speed of PLL4 */
-       val = regmap_read(regmap, 0x4, &val);
+       regmap_read(regmap, 0x4, &val);
        if (val == 0x12) {
                slimbus_src.freq_tbl = clk_tbl_aif_osr_492;
                mi2s_osr_src.freq_tbl = clk_tbl_aif_osr_492;
This page took 0.027534 seconds and 5 git commands to generate.