From e21e6e947b334cd16cc92c41953bf3c0153b1508 Mon Sep 17 00:00:00 2001 From: skadamati Date: Tue, 23 May 2017 15:55:29 +0530 Subject: gpu: nvgpu: Fix build failure by missing headers Move the platform_gk20a.h include out of the ifdef CONFIG_DEBUG_FS in the CDE code since dev_from_gk20a() is used regardless of whether debugfs is enabled. Also modify some of the CE ops to take a struct gk20a instead of a struct device. This avoids any requirement for including linux/device.h or platform_gk20a.h. Bug 200310575 Change-Id: Ifef963cd0f66d05094a698200386cc6140920eac Signed-off-by: skadamati Reviewed-on: http://git-master/r/1487830 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index d2bb3ee9..a0160274 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c @@ -20,7 +20,6 @@ #include #ifdef CONFIG_DEBUG_FS #include -#include "platform_gk20a.h" #endif #include @@ -42,6 +41,7 @@ #include "fence_gk20a.h" #include "gr_gk20a.h" #include "debug_gk20a.h" +#include "platform_gk20a.h" #include #include -- cgit v1.2.2