gpu: nvgpu: pass device pointer as argument to nvhost

Pass device pointer as an argument to nvhost_register_dump_device()
This is needed so that nvhost can call the callback
with device pointer that we register

Bug 200188753

Change-Id: I4e3ff7e99378b9d7ec25b88a7af2c89998496b4c
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1126791
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Deepak Nibade
2016-04-14 17:48:20 +05:30
committed by Terje Bergstrom
parent b6dc4315a4
commit 61e009c0f8

View File

@@ -748,7 +748,8 @@ static int gk20a_tegra_probe(struct device *dev)
if (platform->g->host1x_dev)
nvhost_register_dump_device(platform->g->host1x_dev,
gk20a_debug_dump_device);
gk20a_debug_dump_device,
platform->g->dev);
#ifdef CONFIG_OF
joint_xpu_rail = of_property_read_bool(of_chosen,
"nvidia,tegra-joint_xpu_rail");