drm/tegra: dc: Detach IOMMU group from domain only once
authorThierry Reding <treding@nvidia.com>
Sat, 17 Mar 2018 00:52:38 +0000 (01:52 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 19 Mar 2018 08:57:04 +0000 (09:57 +0100)
commitb1d0b34b748c9e5e67a91c545cb48711cfde119c
treed15809b23cc887cce560ea74537c92205d4ed067
parent48519232bea9230d1c5dbbb680d9257d4861bb4c
drm/tegra: dc: Detach IOMMU group from domain only once

Detaching from an IOMMU group multiple times can lead to a crash. This
could potentially be fixed in the IOMMU driver, but it's easy to avoid
the subsequent detach operations in this driver, so do that as well.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c