From 8c6a9fd1151299697037d58f33cfa306d8ac5d87 Mon Sep 17 00:00:00 2001 From: Sam Payne Date: Fri, 31 Oct 2014 14:27:33 -0700 Subject: Revert "gpu: nvgpu: GR and LTC HAL to use const structs" This reverts commit 41b82e97164138f45fbdaef6ab6939d82ca9419e. Change-Id: Iabd01fcb124e0d22cd9be62151a6552cbb27fc94 Signed-off-by: Sam Payne Reviewed-on: http://git-master/r/592221 Tested-by: Hoang Pham GVS: Gerrit_Virtual_Submit Reviewed-by: Mitch Luban --- drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index 2abb0e9d..52a34086 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c @@ -26,7 +26,6 @@ #include -#include "gr_ops.h" #include "gk20a.h" #include "gr_gk20a.h" #include "fifo_gk20a.h" @@ -624,9 +623,9 @@ static ssize_t tpc_fs_mask_read(struct device *device, u32 tpc_fs_mask = 0; for (gpc_index = 0; gpc_index < gr->gpc_count; gpc_index++) { - if (g->ops.gr->get_gpc_tpc_mask) + if (g->ops.gr.get_gpc_tpc_mask) tpc_fs_mask |= - g->ops.gr->get_gpc_tpc_mask(g, gpc_index) << + g->ops.gr.get_gpc_tpc_mask(g, gpc_index) << (gr->max_tpc_per_gpc_count * gpc_index); } -- cgit v1.2.2