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:11:01 -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:11:01 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:10:47 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:10:43 -07:00
2015-03-18 12:10:35 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:20 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:24 -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:47 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:10:46 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:45 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:56 -07:00
2015-03-18 12:11:02 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:06 -07:00
2015-03-18 12:08:54 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:10:51 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:29 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:09:33 -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:08:53 -07:00
2015-03-18 12:10:49 -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:10:53 -07:00
2015-03-18 12:09:05 -07:00
2015-03-18 12:09:42 -07:00
2015-03-18 12:10:52 -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: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:16 -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:09:06 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:41 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:00 -07:00
2015-03-18 12:11:00 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:10:23 -07:00
2015-03-18 12:10:58 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:11:01 -07:00
2015-03-18 12:10:56 -07:00
2015-03-18 12:10:56 -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:08:53 -07:00
2015-03-18 12:10:10 -07:00
2015-03-18 12:09:52 -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
2015-03-18 12:08:53 -07:00
2015-03-18 12:08:53 -07:00
2015-03-18 12:10:45 -07:00
2015-03-18 12:10:45 -07:00