forked from luck/tmp_suning_uos_patched
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
This commit is contained in:
parent
d3e240c4bc
commit
8c3d69237e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user