diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-10-30 09:53:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-02 08:10:59 -0400 |
commit | 0aa4cea63b906401df1bece74cef4a566054cf59 (patch) | |
tree | 3e44c0e472d4872d4b47c201a657e11149042540 /drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |
parent | 00b255cf43a2f85d4d9a0378c4a85e7a20e6adc8 (diff) |
gpu: nvgpu: use struct gk20a for create_gr_sysfs
API gr_gp10b_create_sysfs() and GR HAL create_gr_sysfs() right now receive
linux specific struct device
But since this function is called from/declared in common code, we need to
remove linux dependency from it
Hence update the API and GR HAL to receive struct gk20a pointer instead
of device pointer
Jira NVGPU-259
Change-Id: I7effa16407d47a2ab5f9562ec4a4dec975a32d6c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1588464
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h index a537f147..45ac5305 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h | |||
@@ -56,7 +56,7 @@ enum { | |||
56 | int gr_gp10b_init_fs_state(struct gk20a *g); | 56 | int gr_gp10b_init_fs_state(struct gk20a *g); |
57 | int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, | 57 | int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, |
58 | struct nvgpu_mem *mem); | 58 | struct nvgpu_mem *mem); |
59 | void gr_gp10b_create_sysfs(struct device *dev); | 59 | void gr_gp10b_create_sysfs(struct gk20a *g); |
60 | int gr_gp10b_handle_fecs_error(struct gk20a *g, | 60 | int gr_gp10b_handle_fecs_error(struct gk20a *g, |
61 | struct channel_gk20a *__ch, | 61 | struct channel_gk20a *__ch, |
62 | struct gr_gk20a_isr_data *isr_data); | 62 | struct gr_gk20a_isr_data *isr_data); |