From f41b91bbabd3c6546b822ea6ac8714b3a7403287 Mon Sep 17 00:00:00 2001 From: Joerg Roedel Date: Tue, 22 Sep 2020 16:39:13 +0800 Subject: [PATCH] iommu/tegra: Use helper functions to access dev->iommu_fwspec mainline inclusion from mainline-v4.20-rc1 commit db5d6a70043a0073e59af99cd4fd6bcb5bd3ace2 category:feature bugzilla:NA CVE:NA ------------------- Use the new helpers dev_iommu_fwspec_get()/set() to access the dev->iommu_fwspec pointer. This makes it easier to move that pointer later into another struct. Cc: Thierry Reding Acked-by: Thierry Reding Signed-off-by: Joerg Roedel Signed-off-by: Chen Jun Reviewed-by: Hanjun Guo Signed-off-by: Yang Yingliang --- drivers/iommu/tegra-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index fa0ecb5e6380..b784d51f2a0d 100644 --- a/drivers/iommu/tegra-smmu.c +++ b/drivers/iommu/tegra-smmu.c @@ -858,7 +858,7 @@ static struct iommu_group *tegra_smmu_group_get(struct tegra_smmu *smmu, static struct iommu_group *tegra_smmu_device_group(struct device *dev) { - struct iommu_fwspec *fwspec = dev->iommu_fwspec; + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); struct tegra_smmu *smmu = dev->archdata.iommu; struct iommu_group *group; -- GitLab