From f01c36986e22de0f4a049bf6897dd276b17a18ba Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Wed, 8 Mar 2017 16:52:26 -0800 Subject: gpu: nvgpu: Use new kmem API functions (boardobj/*) Use the new kmem API functions in boardobj/*. Add a struct gk20a pointer to the boardobj struct to provide the necessary gk20a pointer for freeing the boardobj. Bug 1799159 Bug 1823380 Change-Id: I62d93681bed2671f19435ad64343a44791a1d766 Signed-off-by: Alex Waterman Reviewed-on: http://git-master/r/1318317 Reviewed-by: svccoveritychecker Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/boardobj/boardobj.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/boardobj/boardobj.h') diff --git a/drivers/gpu/nvgpu/boardobj/boardobj.h b/drivers/gpu/nvgpu/boardobj/boardobj.h index 138b3acc..16dbf6b4 100644 --- a/drivers/gpu/nvgpu/boardobj/boardobj.h +++ b/drivers/gpu/nvgpu/boardobj/boardobj.h @@ -60,6 +60,8 @@ typedef u32 boardobj_destruct(struct boardobj *pboardobj); */ struct boardobj { + struct gk20a *g; + u8 type; /*type of the device*/ u8 idx; /*index of boardobj within in its group*/ u32 type_mask; /*mask of types this boardobjimplements*/ -- cgit v1.2.2