diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2014-08-22 06:06:31 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:02 -0400 |
commit | d43210cbac2ab83dfb257c27050131edfcbc9e1b (patch) | |
tree | 8ca735af233aed566261735eec97a3899f8fb67f /drivers/gpu/nvgpu/gm20b | |
parent | 447aab482a68be70cece649da88c656919d155d1 (diff) |
gpu: nvgpu: remove hard coded GPU name
In gk20a_do_idle(), to get pointer to platform_device of gk20a,
we use bus_find_device_by_name() and pass "gk20a.0" to it
But this hard coding fails on gm20b since GPU device name
there is "gpu"
Hence to fix this add a static pointer handle "gk20a_handle"
to struct gk20a in gk20a.c
Now we can access this global pointer inside do_idle()
to get gk20a pointer and from that we can get pointer to
platform_device
Change-Id: I1a65588e34ad36efed0fa587bb365f0ee81e253d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/486887
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
0 files changed, 0 insertions, 0 deletions