We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf3aed4 commit 6d59603Copy full SHA for 6d59603
drivers/iommu/amd/iommu.c
@@ -1707,14 +1707,9 @@ static struct iommu_device *amd_iommu_probe_device(struct device *dev)
1707
1708
static void amd_iommu_probe_finalize(struct device *dev)
1709
{
1710
- struct iommu_domain *domain;
1711
-
1712
/* Domains are initialized for this device - have a look what we ended up with */
1713
- domain = iommu_get_domain_for_dev(dev);
1714
- if (domain->type == IOMMU_DOMAIN_DMA)
1715
- iommu_setup_dma_ops(dev, 0, U64_MAX);
1716
- else
1717
- set_dma_ops(dev, NULL);
+ set_dma_ops(dev, NULL);
+ iommu_setup_dma_ops(dev, 0, U64_MAX);
1718
}
1719
1720
static void amd_iommu_release_device(struct device *dev)
0 commit comments