From cc8e05c21533769d78f098149edb02e1f4394398 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 23 Oct 2014 15:13:08 +0300 Subject: gpu: nvgpu: Fix build without Tegra clk framework Do not build clock code if TEGRA_CLK_FRAMEWORK is not defined. Also make GK20A_DEVFREQ depend on TEGRA_CLK_FRAMEWORK, and build scaling governor only if GK20A_DEVFREQ is enabled. Bug 1567274 Change-Id: I6ea1462e7a110fb46c9d66ceda71167cff19699e Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/562475 --- drivers/gpu/nvgpu/gm20b/clk_gm20b.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.h') diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h index cac5708c..84a2ce9a 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.h @@ -21,6 +21,10 @@ #include +#ifdef CONFIG_TEGRA_CLK_FRAMEWORK void gm20b_init_clk_ops(struct gpu_ops *gops); +#else +static inline void gm20b_init_clk_ops(struct gpu_ops *gops) {} +#endif #endif /* _NVHOST_CLK_GM20B_H_ */ -- cgit v1.2.2