mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 15:18:15 +00:00
arm-nommu: don't define arch_teardown_dma_ops
We can just use the default implementation. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Robin Murphy <robin.murphy@arm.com>
This commit is contained in:
parent
e0a9317d90
commit
58643a3a80
2 changed files with 2 additions and 4 deletions
|
@ -100,8 +100,10 @@ static inline unsigned long dma_max_pfn(struct device *dev)
|
||||||
extern void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
|
extern void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
|
||||||
const struct iommu_ops *iommu, bool coherent);
|
const struct iommu_ops *iommu, bool coherent);
|
||||||
|
|
||||||
|
#ifdef CONFIG_MMU
|
||||||
#define arch_teardown_dma_ops arch_teardown_dma_ops
|
#define arch_teardown_dma_ops arch_teardown_dma_ops
|
||||||
extern void arch_teardown_dma_ops(struct device *dev);
|
extern void arch_teardown_dma_ops(struct device *dev);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* do not use this function in a driver */
|
/* do not use this function in a driver */
|
||||||
static inline bool is_device_dma_coherent(struct device *dev)
|
static inline bool is_device_dma_coherent(struct device *dev)
|
||||||
|
|
|
@ -237,7 +237,3 @@ void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size,
|
||||||
|
|
||||||
set_dma_ops(dev, dma_ops);
|
set_dma_ops(dev, dma_ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
void arch_teardown_dma_ops(struct device *dev)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue