Commit 8c3d6923 authored by Joerg Roedel's avatar Joerg Roedel

iommu/tegra-gart: Remove direct access of dev->iommu_fwspec

Use the accessor functions instead of directly dereferencing
dev->iommu_fwspec.
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Reviewed-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20200326150841.10083-5-joro@8bytes.org
parent d3e240c4
...@@ -247,7 +247,7 @@ static int gart_iommu_add_device(struct device *dev) ...@@ -247,7 +247,7 @@ static int gart_iommu_add_device(struct device *dev)
{ {
struct iommu_group *group; struct iommu_group *group;
if (!dev->iommu_fwspec) if (!dev_iommu_fwspec_get(dev))
return -ENODEV; return -ENODEV;
group = iommu_group_get_for_dev(dev); group = iommu_group_get_for_dev(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment