Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a
Deepak Nibade d43210cbac 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>
2015-03-18 12:11:02 -07:00
..
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:02 -07:00
2015-03-18 12:11:02 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:11:02 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:10:40 -07:00