diff options
author | Thierry Reding <treding@nvidia.com> | 2019-12-03 17:19:12 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2019-12-04 13:37:44 +0100 |
commit | a8817489dc3e3b1910842958a3b9d9e4832e99b0 (patch) | |
tree | 19928fea336c20f940553f868d8228a654c8d0c2 /drivers/gpu/drm/tegra/vic.c | |
parent | drm/tegra: vic: Export module device table (diff) | |
download | linux-a8817489dc3e3b1910842958a3b9d9e4832e99b0.tar.xz linux-a8817489dc3e3b1910842958a3b9d9e4832e99b0.zip |
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 '')
-rw-r--r-- | drivers/gpu/drm/tegra/vic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index c4d82b8b3065..3526c2892ddb 100644 --- a/drivers/gpu/drm/tegra/vic.c +++ b/drivers/gpu/drm/tegra/vic.c @@ -167,7 +167,7 @@ static int vic_init(struct host1x_client *client) int err; err = host1x_client_iommu_attach(client); - if (err < 0) { + if (err < 0 && err != -ENODEV) { dev_err(vic->dev, "failed to attach to domain: %d\n", err); return err; } |