diff options
author | Joerg Roedel <jroedel@suse.de> | 2020-03-26 16:08:29 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2020-03-27 11:12:19 +0100 |
commit | 8c3d69237eb2cae01a015fefed4b770284e4ebd4 (patch) | |
tree | e972573c64a9828b7eea3366c23b78a502f0f297 /drivers/iommu/tegra-gart.c | |
parent | d3e240c4bcf0030349b9289d1cbcbd0672b73284 (diff) | |
download | linux-8c3d69237eb2cae01a015fefed4b770284e4ebd4.tar.gz |
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/tegra-gart.c')
-rw-r--r-- | drivers/iommu/tegra-gart.c | 2 |
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); |