summaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorDenis Orlov <denorl2009@gmail.com>2023-02-10 17:47:43 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-13 10:02:01 +0100
commit8dd55520b761c5dc6dd3a22ed78f6e30dcabf97d (patch)
tree2578df2c2b58e450c99d897a535b7e5971e4274c /arch/mips
parent8e2327036285181c6168958d54ed1d135aeb9b7d (diff)
downloadbarebox-8dd55520b761c5dc6dd3a22ed78f6e30dcabf97d.tar.gz
MIPS: dma: remove unnecessary ifdefs
We do not support any MIPS CPUs that are not MIPS32/MIPS64, so there is no reason to check for those. Signed-off-by: Denis Orlov <denorl2009@gmail.com> Link: https://lore.barebox.org/20230210144745.915720-3-denorl2009@gmail.com Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/lib/dma-default.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/mips/lib/dma-default.c b/arch/mips/lib/dma-default.c
index fbe627c24c..48176e5d28 100644
--- a/arch/mips/lib/dma-default.c
+++ b/arch/mips/lib/dma-default.c
@@ -6,8 +6,6 @@
#include <dma.h>
#include <asm/io.h>
-#if defined(CONFIG_CPU_MIPS32) || \
- defined(CONFIG_CPU_MIPS64)
static inline void __dma_sync_mips(unsigned long addr, size_t size,
enum dma_data_direction direction)
{
@@ -28,12 +26,6 @@ static inline void __dma_sync_mips(unsigned long addr, size_t size,
BUG();
}
}
-#else
-static inline void __dma_sync_mips(void *addr, size_t size,
- enum dma_data_direction direction)
-{
-}
-#endif
void dma_sync_single_for_cpu(dma_addr_t address, size_t size,
enum dma_data_direction dir)