From 488d02944bbd3bcaaa829ace882e25a02439feb0 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Thu, 21 Dec 2017 10:46:46 -0800 Subject: gpu: nvgpu: gv11b: host1x probed only if syncpoints supported Change-Id: I645f272f8fc3fffda95a82716558c081e323aed0 Signed-off-by: Seema Khowala Reviewed-on: https://git-master.nvidia.com/r/1624097 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: Richard Zhao Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c') diff --git a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c index 194c375d..0eb39406 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c @@ -53,10 +53,12 @@ static int gv11b_tegra_probe(struct device *dev) struct gk20a *g = platform->g; int err = 0; - err = nvgpu_get_nvhost_dev(g); - if (err) { - dev_err(dev, "host1x device not available"); - return err; + if (g->has_syncpoints) { + err = nvgpu_get_nvhost_dev(g); + if (err) { + dev_err(dev, "host1x device not available"); + return err; + } } if (g->has_syncpoints) { -- cgit v1.2.2