diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gv11b_tegra.c | 10 |
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) { |