linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: Add missing clock at index GCC_XO_CLK for MSM8974
@ 2014-02-19 14:18 Ivan T. Ivanov
  2014-02-19 20:17 ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Ivan T. Ivanov @ 2014-02-19 14:18 UTC (permalink / raw)
  To: linux-arm-kernel

From: "Ivan T. Ivanov" <iivanov@mm-sol.com>

Accessing GCC on MSM8974 trough <&gcc GCC_XO_CLK> lead to NULL
pointer dereference. Fix this.

Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com>
---
 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-20  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 14:18 [PATCH] clk: qcom: Add missing clock at index GCC_XO_CLK for MSM8974 Ivan T. Ivanov
2014-02-19 20:17 ` Stephen Boyd
2014-02-20  7:44   ` Ivan T. Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).