From 94eebcdd8cacc9a2dc20485e0d3d15fc51507c2c Mon Sep 17 00:00:00 2001 From: Nitin Kumbhar Date: Fri, 10 Aug 2018 10:34:17 +0530 Subject: gpu: nvgpu: linux: move os ops to a common file Currently only cde uses nvgpu_os_linux_ops to set up linux specific ops. Move nvgpu_os_linux_ops of a gpu to a common file so that those can be reused for other os ops of that gpu. JIRA NVGPU-603 Change-Id: Icf1ff275d3832229137f730fe8183b8015e82673 Signed-off-by: Nitin Kumbhar Reviewed-on: https://git-master.nvidia.com/r/1797902 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/module.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'drivers/gpu/nvgpu/os/linux/module.c') diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index c07faf08..3be879be 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -56,6 +56,7 @@ #include "ioctl.h" #include "os_linux.h" +#include "os_ops.h" #include "ctxsw_trace.h" #include "driver_common.h" #include "channel.h" @@ -183,17 +184,6 @@ static int gk20a_restore_registers(struct gk20a *g) return 0; } -static int nvgpu_init_os_linux_ops(struct nvgpu_os_linux *l) -{ - int err = 0; - -#ifdef CONFIG_NVGPU_SUPPORT_CDE - err = nvgpu_cde_init_ops(l); -#endif - - return err; -} - int nvgpu_finalize_poweron_linux(struct nvgpu_os_linux *l) { struct gk20a *g = &l->g; -- cgit v1.2.2