Skip to content

Commit c9cb013

Browse files
author
Christoph Hellwig
committed
ARM/dma-mapping: remove the dma_coherent member of struct dev_archdata
Since commit ae626eb ("ARM/dma-mapping: use dma-direct unconditionally") only the dma_coherent flag in struct device is used, so remove the now write only flag in struct dev_archdata. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
1 parent 49bc8be commit c9cb013

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

arch/arm/include/asm/device.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ struct dev_archdata {
99
#ifdef CONFIG_ARM_DMA_USE_IOMMU
1010
struct dma_iommu_mapping *mapping;
1111
#endif
12-
unsigned int dma_coherent:1;
1312
unsigned int dma_ops_setup:1;
1413
};
1514

arch/arm/mm/dma-mapping.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,10 +1775,8 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
17751775
* here, but instead have to make sure we only set but never clear it
17761776
* for now.
17771777
*/
1778-
if (coherent) {
1779-
dev->archdata.dma_coherent = true;
1778+
if (coherent)
17801779
dev->dma_coherent = true;
1781-
}
17821780

17831781
/*
17841782
* Don't override the dma_ops if they have already been set. Ideally

0 commit comments

Comments
 (0)