From ba387d3d7e81072641e0134c1c1d4fcf890f1b70 Mon Sep 17 00:00:00 2001 From: Hoang Pham Date: Mon, 14 Jul 2014 10:42:35 -0700 Subject: gpu: Split clk_ops for GK20A and GM20B Split clk_ops for GK20A and GM20B into different files Bug 1450787 Change-Id: I34d16c54ac40c70854e80588475434c9e50b51a5 Signed-off-by: Hoang Pham Reviewed-on: http://git-master/r/437771 Reviewed-by: Yu-Huan Hsu --- drivers/gpu/nvgpu/gk20a/gk20a.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index c69df460..e70cc0de 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c @@ -901,10 +901,12 @@ static int gk20a_pm_finalize_poweron(struct device *dev) during boot but it also significantly slows down gk20a init on simulation and emulation. We should remove SOB after graphics power saving features (blcg/slcg) are enabled. For now, do it here. */ - err = gk20a_init_clk_support(g); - if (err) { - gk20a_err(dev, "failed to init gk20a clk"); - goto done; + if (g->ops.clk.init_clk_support) { + err = g->ops.clk.init_clk_support(g); + if (err) { + gk20a_err(dev, "failed to init gk20a clk"); + goto done; + } } /* enable pri timeout only on silicon */ -- cgit v1.2.2