Skip to content

Commit

Permalink
iommu/tegra-gart: Remove direct access of dev->iommu_fwspec
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Joerg Roedel committed Mar 27, 2020
1 parent d3e240c commit 8c3d692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/tegra-gart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c3d692

Please sign in to comment.