From: "Ivan T. Ivanov" <iivanov@xxxxxxxxxx> Accessing GCC on MSM8974 trough <&gcc GCC_XO_CLK> lead to NULL pointer dereference. Fix this. Signed-off-by: Ivan T. Ivanov <iivanov@xxxxxxxxxx> --- drivers/clk/qcom/gcc-msm8974.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8974.c b/drivers/clk/qcom/gcc-msm8974.c index 51d457e..98be7ea 100644 --- a/drivers/clk/qcom/gcc-msm8974.c +++ b/drivers/clk/qcom/gcc-msm8974.c @@ -2625,6 +2625,8 @@ static int gcc_msm8974_probe(struct platform_device *pdev) if (IS_ERR(clk)) return PTR_ERR(clk); + clks[GCC_XO_CLK] = clk; + /* Should move to DT node? */ clk = clk_register_fixed_rate(dev, "sleep_clk_src", NULL, CLK_IS_ROOT, 32768); -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html