summaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2020-03-26 16:08:29 +0100
committerJoerg Roedel <jroedel@suse.de>2020-03-27 11:12:19 +0100
commit8c3d69237eb2cae01a015fefed4b770284e4ebd4 (patch)
treee972573c64a9828b7eea3366c23b78a502f0f297 /drivers/iommu
parentdrm/msm/mdp5: Remove direct access of dev->iommu_fwspec (diff)
downloadlinux-8c3d69237eb2cae01a015fefed4b770284e4ebd4.tar.xz
linux-8c3d69237eb2cae01a015fefed4b770284e4ebd4.zip
iommu/tegra-gart: Remove direct access of dev->iommu_fwspec
Use the accessor functions instead of directly dereferencing dev->iommu_fwspec. Signed-off-by: Joerg Roedel <jroedel@suse.de> Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Link: https://lore.kernel.org/r/20200326150841.10083-5-joro@8bytes.org
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/tegra-gart.c2
1 files changed, 1 insertions, 1 deletions
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);