summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvhost.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvhost.c b/drivers/gpu/nvgpu/common/linux/nvhost.c
index 19e41e17..e190096e 100644
--- a/drivers/gpu/nvgpu/common/linux/nvhost.c
+++ b/drivers/gpu/nvgpu/common/linux/nvhost.c
@@ -42,8 +42,11 @@ int nvgpu_get_nvhost_dev(struct gk20a *g)
42 } 42 }
43 43
44 } else { 44 } else {
45 host1x_pdev = to_platform_device(g->dev->parent); 45 if (g->has_syncpoints) {
46 dev_warn(g->dev, "host1x reference not found. assuming host1x to be parent"); 46 dev_warn(g->dev, "host1x reference not found. assuming no syncpoints support\n");
47 g->has_syncpoints = false;
48 }
49 return 0;
47 } 50 }
48 51
49 g->nvhost_dev = nvgpu_kzalloc(g, sizeof(struct nvgpu_nvhost_dev)); 52 g->nvhost_dev = nvgpu_kzalloc(g, sizeof(struct nvgpu_nvhost_dev));