]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ARM/dma-mapping: remove the dma_coherent member of struct dev_archdata
authorChristoph Hellwig <hch@lst.de>
Thu, 6 Oct 2022 07:43:01 +0000 (09:43 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 6 Oct 2022 12:31:08 +0000 (14:31 +0200)
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>
arch/arm/include/asm/device.h
arch/arm/mm/dma-mapping.c

index 8754c0f5fc9041b99f97b5f298c00be6ea7b2353..c6beb1708c64b5627cf858778bf6fba378a421f0 100644 (file)
@@ -9,7 +9,6 @@ struct dev_archdata {
 #ifdef CONFIG_ARM_DMA_USE_IOMMU
        struct dma_iommu_mapping        *mapping;
 #endif
-       unsigned int dma_coherent:1;
        unsigned int dma_ops_setup:1;
 };
 
index bfc7476f141145c7bccbc0ffaffb7e9057512a80..f60d6b4afe5df75b62ef2310ffdbba9bf5bf1365 100644 (file)
@@ -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