diff options
author | David Nieto <dmartineznie@nvidia.com> | 2017-03-13 21:45:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-24 00:05:35 -0400 |
commit | 2a502bdd5f3c93b87286456ca901ad43b0f14906 (patch) | |
tree | aba5c18b07b393e0306588d9ba4707a6c272ae6b /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | a84f601fbaf6b40e14a321eda1e83d93e55cebba (diff) |
gpu: nvgpu: pass gk20a struct to gk20a_busy
After driver remove, the device structure passed in gk20a_busy can be
invalid. To solve this the prototype of the function is modified to pass
the gk20a struct instead of the device pointer.
bug 200277762
JIRA: EVLR-1023
Change-Id: I08eb74bd3578834d45115098ed9936ebbb436fdf
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: http://git-master/r/1320194
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 817315e7..25bcd895 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1391,8 +1391,8 @@ void gk20a_remove_sysfs(struct device *dev); | |||
1391 | 1391 | ||
1392 | void gk20a_busy_noresume(struct device *dev); | 1392 | void gk20a_busy_noresume(struct device *dev); |
1393 | void gk20a_idle_nosuspend(struct device *dev); | 1393 | void gk20a_idle_nosuspend(struct device *dev); |
1394 | int __must_check gk20a_busy(struct device *dev); | 1394 | int __must_check gk20a_busy(struct gk20a *g); |
1395 | void gk20a_idle(struct device *dev); | 1395 | void gk20a_idle(struct gk20a *g); |
1396 | void gk20a_disable(struct gk20a *g, u32 units); | 1396 | void gk20a_disable(struct gk20a *g, u32 units); |
1397 | void gk20a_enable(struct gk20a *g, u32 units); | 1397 | void gk20a_enable(struct gk20a *g, u32 units); |
1398 | void gk20a_reset(struct gk20a *g, u32 units); | 1398 | void gk20a_reset(struct gk20a *g, u32 units); |