]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/amd: Remove unused fields from struct dma_ops_domain
authorJoerg Roedel <jroedel@suse.de>
Thu, 28 May 2015 16:41:44 +0000 (18:41 +0200)
committerJoerg Roedel <jroedel@suse.de>
Thu, 11 Jun 2015 07:42:24 +0000 (09:42 +0200)
The list_head and target_dev members are not used anymore.
Remove them.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_types.h

index fadda2c0cd181271b588368634be42d2280f0df5..96390b9b7842c5d1f5d3808230433a232b2fd741 100644 (file)
@@ -1886,7 +1886,6 @@ static struct dma_ops_domain *dma_ops_domain_alloc(void)
                goto free_dma_dom;
 
        dma_dom->need_flush = false;
-       dma_dom->target_dev = 0xffff;
 
        add_domain_to_list(&dma_dom->domain);
 
index fe796cfc62cae8de66c2dce10846707c3ac6d98f..bb56560ac6ca9250a2f43e8d32768cdff061938b 100644 (file)
@@ -446,8 +446,6 @@ struct aperture_range {
  * Data container for a dma_ops specific protection domain
  */
 struct dma_ops_domain {
-       struct list_head list;
-
        /* generic protection domain information */
        struct protection_domain domain;
 
@@ -462,12 +460,6 @@ struct dma_ops_domain {
 
        /* This will be set to true when TLB needs to be flushed */
        bool need_flush;
-
-       /*
-        * if this is a preallocated domain, keep the device for which it was
-        * preallocated in this variable
-        */
-       u16 target_dev;
 };
 
 /*