diff options
author | Christoph Hellwig <hch@lst.de> | 2020-02-21 12:24:02 -0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-03-16 10:48:02 +0100 |
commit | 4f8232bbf887123f78bcdca3dfd2b3dfa52a0112 (patch) | |
tree | ec534d3d2c43b28cf92423e28abc9fa750416384 /arch/mips/mm | |
parent | 286c21de32b904131f8cf6a36ce40b8b0c9c5da3 (diff) |
dma-direct: remove the cached_kernel_address hook
dma-direct now finds the kernel address for coherent allocations based
on the dma address, so the cached_kernel_address hooks is unused and
can be removed entirely.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/dma-noncoherent.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c index dc42ffc83825..77dce28ad0a0 100644 --- a/arch/mips/mm/dma-noncoherent.c +++ b/arch/mips/mm/dma-noncoherent.c @@ -54,11 +54,6 @@ void *uncached_kernel_address(void *addr) return (void *)(__pa(addr) + UNCAC_BASE); } -void *cached_kernel_address(void *addr) -{ - return __va(addr) - UNCAC_BASE; -} - static inline void dma_sync_virt(void *addr, size_t size, enum dma_data_direction dir) { |