summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-09-08 08:47:15 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:13 -0400
commit3ef352a05a027231d9cb88b63f465e6a0da89759 (patch)
tree3cc8d14d6a8f3fd35aedaf3b8e14071902736a7a /drivers/gpu/nvgpu/gk20a/gk20a.h
parent545fadee0a7de14b087af40c98281e8653d2e312 (diff)
gpu: nvgpu: remove gk20a_handle
Remove static variable gk20a_handle used to store pointer to struct gk20a Use below device tree APIs to get pointer to platform_device and then struct gk20a device_node = of_find_matching_node() platform_device = of_find_device_by_node(device_node) Also, use two versions of do_idle()/do_unidle() APIs - one will receive void (to be used from outside GPU driver) and another will receive platform_device (to be used within GPU driver where it is available) Change-Id: I9f2c7610646c5fbcd3d99a1b03dc0364201272a8 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/496508 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Ken Adams <kadams@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index b6d73343..83c4e147 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -712,6 +712,8 @@ void gk20a_enable(struct gk20a *g, u32 units);
712void gk20a_reset(struct gk20a *g, u32 units); 712void gk20a_reset(struct gk20a *g, u32 units);
713int gk20a_get_client(struct gk20a *g); 713int gk20a_get_client(struct gk20a *g);
714void gk20a_put_client(struct gk20a *g); 714void gk20a_put_client(struct gk20a *g);
715int __gk20a_do_idle(struct platform_device *pdev);
716int __gk20a_do_unidle(struct platform_device *pdev);
715 717
716const struct firmware * 718const struct firmware *
717gk20a_request_firmware(struct gk20a *g, const char *fw_name); 719gk20a_request_firmware(struct gk20a *g, const char *fw_name);