summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/module.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-10-31 09:11:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-11-02 13:26:21 -0400
commit25440e63d2dfd329ba35aec48f11f0c20b18cdbd (patch)
treed66fe69181c8d54dd3fb0deefa018558e4359e0b /drivers/gpu/nvgpu/common/linux/module.c
parent2d71b3efaebb9807cb039979f1ce7dc621fb658f (diff)
gpu: nvgpu: move platform_gk20a.h to linux
Move gk20a/platform_gk20a.h to linux specific directory as common/linux/platform_gk20a.h since this file includes all linux specific stuff Fix #includes in all the files to include this file with correct path Remove #include of this file where it is no more needed Fix gk20a_init_sim_support() to receive struct gk20a as parameter instead of receiving linux specific struct platform_device NVGPU-316 Change-Id: I5ec08e776b753af4d39d11c11f6f068be2ac236f Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1589938 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c
index 7706d826..4aff6a2d 100644
--- a/drivers/gpu/nvgpu/common/linux/module.c
+++ b/drivers/gpu/nvgpu/common/linux/module.c
@@ -33,7 +33,7 @@
33#include <nvgpu/debug.h> 33#include <nvgpu/debug.h>
34#include <nvgpu/ctxsw_trace.h> 34#include <nvgpu/ctxsw_trace.h>
35 35
36#include "gk20a/platform_gk20a.h" 36#include "platform_gk20a.h"
37#include "sysfs.h" 37#include "sysfs.h"
38#include "vgpu/vgpu.h" 38#include "vgpu/vgpu.h"
39#include "scale.h" 39#include "scale.h"
@@ -661,7 +661,7 @@ static int gk20a_init_support(struct platform_device *dev)
661 goto fail; 661 goto fail;
662 } 662 }
663 663
664 err = gk20a_init_sim_support(dev); 664 err = gk20a_init_sim_support(g);
665 if (err) 665 if (err)
666 goto fail; 666 goto fail;
667 } 667 }