mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00

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>
30 lines
533 B
C
30 lines
533 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Arch specific extensions to struct device
|
|
*/
|
|
#ifndef ASMARM_DEVICE_H
|
|
#define ASMARM_DEVICE_H
|
|
|
|
struct dev_archdata {
|
|
#ifdef CONFIG_ARM_DMA_USE_IOMMU
|
|
struct dma_iommu_mapping *mapping;
|
|
#endif
|
|
unsigned int dma_ops_setup:1;
|
|
};
|
|
|
|
struct omap_device;
|
|
|
|
struct pdev_archdata {
|
|
#ifdef CONFIG_ARCH_OMAP
|
|
struct omap_device *od;
|
|
#endif
|
|
};
|
|
|
|
#ifdef CONFIG_ARM_DMA_USE_IOMMU
|
|
#define to_dma_iommu_mapping(dev) ((dev)->archdata.mapping)
|
|
#else
|
|
#define to_dma_iommu_mapping(dev) NULL
|
|
#endif
|
|
|
|
#endif
|