diff options
author | Joerg Roedel <jroedel@suse.de> | 2016-07-08 13:31:31 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2016-07-14 10:21:57 +0200 |
commit | b3311b061de2e51db683a67092546876839df532 (patch) | |
tree | 0dbcb2bca12165ed2ebcda37098d3250a73d6472 /drivers/iommu/amd_iommu_types.h | |
parent | 281e8ccbff172899a60579773e72ad63d58b3770 (diff) | |
download | op-kernel-dev-b3311b061de2e51db683a67092546876839df532.zip op-kernel-dev-b3311b061de2e51db683a67092546876839df532.tar.gz |
iommu/amd: Use container_of to get dma_ops_domain
This is better than storing an extra pointer in struct
protection_domain, because this pointer can now be removed
from the struct.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu_types.h')
-rw-r--r-- | drivers/iommu/amd_iommu_types.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_types.h b/drivers/iommu/amd_iommu_types.h index 590956a..caf5e38 100644 --- a/drivers/iommu/amd_iommu_types.h +++ b/drivers/iommu/amd_iommu_types.h @@ -421,7 +421,6 @@ struct protection_domain { bool updated; /* complete domain flush required */ unsigned dev_cnt; /* devices assigned to this domain */ unsigned dev_iommu[MAX_IOMMUS]; /* per-IOMMU reference count */ - void *priv; /* private data */ }; /* |