From 25440e63d2dfd329ba35aec48f11f0c20b18cdbd Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 31 Oct 2017 06:11:57 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1589938 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/module.c') 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 @@ #include #include -#include "gk20a/platform_gk20a.h" +#include "platform_gk20a.h" #include "sysfs.h" #include "vgpu/vgpu.h" #include "scale.h" @@ -661,7 +661,7 @@ static int gk20a_init_support(struct platform_device *dev) goto fail; } - err = gk20a_init_sim_support(dev); + err = gk20a_init_sim_support(g); if (err) goto fail; } -- cgit v1.2.2