diff options
author | Thierry Reding <treding@nvidia.com> | 2019-12-03 19:19:12 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-12-04 15:37:44 +0300 |
commit | a8817489dc3e3b1910842958a3b9d9e4832e99b0 (patch) | |
tree | 19928fea336c20f940553f868d8228a654c8d0c2 /drivers/gpu/drm/tegra/dc.c | |
parent | 82d73874d422b43359698f73c418a02322c886d5 (diff) | |
download | linux-a8817489dc3e3b1910842958a3b9d9e4832e99b0.tar.xz |
drm/tegra: Silence expected errors on IOMMU attach
Subdevices may not be hooked up to an IOMMU via device tree. Detect such
situations and avoid confusing users by not emitting an error message.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 85d3c9ad29df..714af052fbef 100644 --- a/drivers/gpu/drm/tegra/dc.c +++ b/drivers/gpu/drm/tegra/dc.c @@ -2017,7 +2017,7 @@ static int tegra_dc_init(struct host1x_client *client) dev_warn(dc->dev, "failed to allocate syncpoint\n"); err = host1x_client_iommu_attach(client); - if (err < 0) { + if (err < 0 && err != -ENODEV) { dev_err(client->dev, "failed to attach to domain: %d\n", err); return err; } |