summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-12-21 13:46:46 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-12-26 18:15:35 -0500
commit488d02944bbd3bcaaa829ace882e25a02439feb0 (patch)
tree526f18973ed35c696317d22391108eb8f3cbb27d /drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c
parent8c7626944f280b5c5e04e71210be3241840b4cee (diff)
gpu: nvgpu: gv11b: host1x probed only if syncpoints supported
Change-Id: I645f272f8fc3fffda95a82716558c081e323aed0 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1624097 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Richard Zhao <rizhao@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c10
1 files changed, 6 insertions, 4 deletions
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)
53 struct gk20a *g = platform->g; 53 struct gk20a *g = platform->g;
54 int err = 0; 54 int err = 0;
55 55
56 err = nvgpu_get_nvhost_dev(g); 56 if (g->has_syncpoints) {
57 if (err) { 57 err = nvgpu_get_nvhost_dev(g);
58 dev_err(dev, "host1x device not available"); 58 if (err) {
59 return err; 59 dev_err(dev, "host1x device not available");
60 return err;
61 }
60 } 62 }
61 63
62 if (g->has_syncpoints) { 64 if (g->has_syncpoints) {