Skip to content

Commit ba1057a

Browse files
LuBaolujoergroedel
authored andcommitted
drm/nouveau/tegra: Use iommu_paging_domain_alloc()
In nvkm_device_tegra_probe_iommu(), a paging domain is allocated for @dev and attached to it on success. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu <[email protected]> Acked-by: Thierry Reding <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 0c06901 commit ba1057a

File tree

1 file changed

+2
-2
lines changed
  • drivers/gpu/drm/nouveau/nvkm/engine/device

1 file changed

+2
-2
lines changed

drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ nvkm_device_tegra_probe_iommu(struct nvkm_device_tegra *tdev)
120120
mutex_init(&tdev->iommu.mutex);
121121

122122
if (device_iommu_mapped(dev)) {
123-
tdev->iommu.domain = iommu_domain_alloc(&platform_bus_type);
124-
if (!tdev->iommu.domain)
123+
tdev->iommu.domain = iommu_paging_domain_alloc(dev);
124+
if (IS_ERR(tdev->iommu.domain))
125125
goto error;
126126

127127
/*

0 commit comments

Comments
 (0)