diff options
author | Christoph Hellwig <hch@lst.de> | 2022-10-06 10:43:01 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-10-06 15:31:08 +0300 |
commit | c9cb01369b926a074004714ab9f9b65f75bf3c60 (patch) | |
tree | 5cd90ac54f6b4912892eae6f4ed627f941ac6afe /arch/arm/mm/dma-mapping.c | |
parent | 49bc8bebae79c8516cb12f91818f3a7907e3ebce (diff) | |
download | linux-c9cb01369b926a074004714ab9f9b65f75bf3c60.tar.xz |
ARM/dma-mapping: remove the dma_coherent member of struct dev_archdata
Since commit ae626eb97376 ("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>
Diffstat (limited to 'arch/arm/mm/dma-mapping.c')
-rw-r--r-- | arch/arm/mm/dma-mapping.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index bfc7476f1411..f60d6b4afe5d 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -1775,10 +1775,8 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, * here, but instead have to make sure we only set but never clear it * for now. */ - if (coherent) { - dev->archdata.dma_coherent = true; + if (coherent) dev->dma_coherent = true; - } /* * Don't override the dma_ops if they have already been set. Ideally |