Message ID | 20200320091414.3941-5-joro@8bytes.org |
---|---|
State | Superseded |
Headers | show |
Series | [v3,01/15] iommu: Define dev_iommu_fwspec_get() for !CONFIG_IOMMU_API | expand |
diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index 3fb7ba72507d..db6559e8336f 100644 --- a/drivers/iommu/tegra-gart.c +++ b/drivers/iommu/tegra-gart.c @@ -247,7 +247,7 @@ static int gart_iommu_add_device(struct device *dev) { struct iommu_group *group; - if (!dev->iommu_fwspec) + if (!dev_iommu_fwspec_get(dev)) return -ENODEV; group = iommu_group_get_for_dev(dev);