diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-19 17:23:16 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-20 14:35:34 -0400 |
commit | 0b6eff29656a4ee3d3d0bf94fd6a6328ded4ac7a (patch) | |
tree | cb1616dcada7646deef27e1bfec789be73ae927b /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 9f65627d0edaa45d914d2d180caf1b687e3c0d09 (diff) |
gpu: nvgpu: Pass struct gk20a to secure alloc
Pass struct gk20a to secure alloc API instead of Linux specific
struct device.
JIRA NVGPU-38
Change-Id: I6d9afaeeff9b957351072caa29690f2caf58f858
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1505179
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index f91e86df..19012bf5 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -695,7 +695,7 @@ struct gpu_ops { | |||
695 | * context buffer descriptor (especially fields destroy, sgt, | 695 | * context buffer descriptor (especially fields destroy, sgt, |
696 | * size). | 696 | * size). |
697 | */ | 697 | */ |
698 | int (*secure_alloc)(struct device *dev, | 698 | int (*secure_alloc)(struct gk20a *g, |
699 | struct gr_ctx_buffer_desc *desc, | 699 | struct gr_ctx_buffer_desc *desc, |
700 | size_t size); | 700 | size_t size); |
701 | } mm; | 701 | } mm; |