From 61e009c0f8874898335e6c47a610233c3382be47 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 14 Apr 2016 17:48:20 +0530 Subject: 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 Reviewed-on: http://git-master/r/1126791 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu') 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) 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"); -- cgit v1.2.2