summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
diff options
context:
space:
mode:
authorskadamati <skadamati@nvidia.com>2017-05-23 06:25:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-26 06:34:42 -0400
commite21e6e947b334cd16cc92c41953bf3c0153b1508 (patch)
treea9222039f465548e0f69730c8c3bf24ad6223116 /drivers/gpu/nvgpu/gk20a/cde_gk20a.c
parent2e338c77eac4edffb94c8c9480dbd72712c7696f (diff)
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 <skadamati@nvidia.com> Reviewed-on: http://git-master/r/1487830 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/cde_gk20a.c2
1 files changed, 1 insertions, 1 deletions
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 @@
20#include <linux/fs.h> 20#include <linux/fs.h>
21#ifdef CONFIG_DEBUG_FS 21#ifdef CONFIG_DEBUG_FS
22#include <linux/debugfs.h> 22#include <linux/debugfs.h>
23#include "platform_gk20a.h"
24#endif 23#endif
25#include <linux/dma-buf.h> 24#include <linux/dma-buf.h>
26 25
@@ -42,6 +41,7 @@
42#include "fence_gk20a.h" 41#include "fence_gk20a.h"
43#include "gr_gk20a.h" 42#include "gr_gk20a.h"
44#include "debug_gk20a.h" 43#include "debug_gk20a.h"
44#include "platform_gk20a.h"
45 45
46#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h> 46#include <nvgpu/hw/gk20a/hw_ccsr_gk20a.h>
47#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> 47#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>