mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
8c7626944f
commit
488d02944b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user