dma-mapping: remove dma_deconfigure

This goes through a lot of hooks just to call arch_teardown_dma_ops.
Replace it with a direct call instead.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
This commit is contained in:
Christoph Hellwig
2018-08-24 10:28:18 +02:00
parent ccf640f4c9
commit dc3c05504d
9 changed files with 3 additions and 43 deletions

View File

@@ -753,12 +753,6 @@ dma_mark_declared_memory_occupied(struct device *dev,
}
#endif /* CONFIG_HAVE_GENERIC_DMA_COHERENT */
#ifdef CONFIG_HAS_DMA
void dma_deconfigure(struct device *dev);
#else
static inline void dma_deconfigure(struct device *dev) {}
#endif
/*
* Managed DMA API
*/