Skip to content

Commit 98cc4f7

Browse files
committed
iommu/dma: Use helper functions to access dev->iommu_fwspec
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. Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 9b468f7 commit 98cc4f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/dma-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ EXPORT_SYMBOL(iommu_put_dma_cookie);
177177
void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list)
178178
{
179179

180-
if (!is_of_node(dev->iommu_fwspec->iommu_fwnode))
180+
if (!is_of_node(dev_iommu_fwspec_get(dev)->iommu_fwnode))
181181
iort_iommu_msi_get_resv_regions(dev, list);
182182

183183
}

0 commit comments

Comments
 (0)