projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b468f7
)
iommu/dma: Use helper functions to access dev->iommu_fwspec
author
Joerg Roedel
<jroedel@suse.de>
Thu, 29 Nov 2018 13:01:00 +0000
(14:01 +0100)
committer
Joerg Roedel
<jroedel@suse.de>
Mon, 17 Dec 2018 09:38:30 +0000
(10:38 +0100)
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>
drivers/iommu/dma-iommu.c
patch
|
blob
|
history
diff --git
a/drivers/iommu/dma-iommu.c
b/drivers/iommu/dma-iommu.c
index
4afb1a8
..
13787d3
100644
(file)
--- a/
drivers/iommu/dma-iommu.c
+++ b/
drivers/iommu/dma-iommu.c
@@
-177,7
+177,7
@@
EXPORT_SYMBOL(iommu_put_dma_cookie);
void iommu_dma_get_resv_regions(struct device *dev, struct list_head *list)
{
- if (!is_of_node(dev
->iommu_fwspec
->iommu_fwnode))
+ if (!is_of_node(dev
_iommu_fwspec_get(dev)
->iommu_fwnode))
iort_iommu_msi_get_resv_regions(dev, list);
}