diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-04-14 08:18:20 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-15 11:11:24 -0400 |
commit | 61e009c0f8874898335e6c47a610233c3382be47 (patch) | |
tree | b33c060cdcf7510fd44a64c1107261f2cebb6ca2 /drivers | |
parent | b6dc4315a4c7fa817334797cc2a4b9fb3fbfd55f (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index c7c34417..784128b1 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -748,7 +748,8 @@ static int gk20a_tegra_probe(struct device *dev) | |||
748 | 748 | ||
749 | if (platform->g->host1x_dev) | 749 | if (platform->g->host1x_dev) |
750 | nvhost_register_dump_device(platform->g->host1x_dev, | 750 | nvhost_register_dump_device(platform->g->host1x_dev, |
751 | gk20a_debug_dump_device); | 751 | gk20a_debug_dump_device, |
752 | platform->g->dev); | ||
752 | #ifdef CONFIG_OF | 753 | #ifdef CONFIG_OF |
753 | joint_xpu_rail = of_property_read_bool(of_chosen, | 754 | joint_xpu_rail = of_property_read_bool(of_chosen, |
754 | "nvidia,tegra-joint_xpu_rail"); | 755 | "nvidia,tegra-joint_xpu_rail"); |