提交 f41b91bb 编写于 作者: J Joerg Roedel 提交者: Yang Yingliang

iommu/tegra: Use helper functions to access dev->iommu_fwspec

mainline inclusion
from mainline-v4.20-rc1
commit db5d6a70
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 <thierry.reding@gmail.com>
Acked-by: NThierry Reding <treding@nvidia.com>
Signed-off-by: NJoerg Roedel <jroedel@suse.de>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 ca45435b
...@@ -858,7 +858,7 @@ static struct iommu_group *tegra_smmu_group_get(struct tegra_smmu *smmu, ...@@ -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) 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 tegra_smmu *smmu = dev->archdata.iommu;
struct iommu_group *group; struct iommu_group *group;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册