From b7fca01b0e01544c3a66d2e05a8b99bcb621a004 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Fri, 14 Apr 2017 13:19:04 -0700 Subject: gpu: nvgpu: Scrub gk20a_platform dependencies Remove gk20a_platform dependencies from gk20a.h. This makes gk20a_platform a Linux platform specific data structure. Add #include for platform_gk20a.h in the source files that still depend on Linux. JIRA NVGPU-16 Change-Id: Ib098accd34a1f5066eb8680c387f9b178169f3f0 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1463547 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp106/clk_gp106.c | 3 +++ drivers/gpu/nvgpu/gp106/therm_gp106.c | 4 +++- drivers/gpu/nvgpu/gp106/xve_gp106.c | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gp106') diff --git a/drivers/gpu/nvgpu/gp106/clk_gp106.c b/drivers/gpu/nvgpu/gp106/clk_gp106.c index e4348e73..4d865664 100644 --- a/drivers/gpu/nvgpu/gp106/clk_gp106.c +++ b/drivers/gpu/nvgpu/gp106/clk_gp106.c @@ -23,6 +23,9 @@ #include #include "gk20a/gk20a.h" +#ifdef CONFIG_DEBUG_FS +#include "gk20a/platform_gk20a.h" +#endif #include "clk_gp106.h" #include "clk/clk_arb.h" diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.c b/drivers/gpu/nvgpu/gp106/therm_gp106.c index 4f616d8e..d473da96 100644 --- a/drivers/gpu/nvgpu/gp106/therm_gp106.c +++ b/drivers/gpu/nvgpu/gp106/therm_gp106.c @@ -12,10 +12,12 @@ */ #include "therm_gp106.h" +#include "therm/thrmpmu.h" + #ifdef CONFIG_DEBUG_FS #include +#include "gk20a/platform_gk20a.h" #endif -#include "therm/thrmpmu.h" #include diff --git a/drivers/gpu/nvgpu/gp106/xve_gp106.c b/drivers/gpu/nvgpu/gp106/xve_gp106.c index 2bd93666..fb0e8a8f 100644 --- a/drivers/gpu/nvgpu/gp106/xve_gp106.c +++ b/drivers/gpu/nvgpu/gp106/xve_gp106.c @@ -23,6 +23,10 @@ #include "gm206/bios_gm206.h" #include "gp106/xve_gp106.h" +#ifdef CONFIG_DEBUG_FS +#include "gk20a/platform_gk20a.h" +#endif + #include #include -- cgit v1.2.2