m68k: Don't select ARCH_HAS_DMA_PREP_COHERENT for nommu or coldfire
authorChristoph Hellwig <hch@lst.de>
Mon, 8 Jul 2019 17:51:01 +0000 (10:51 -0700)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 9 Jul 2019 07:13:24 +0000 (09:13 +0200)
M68k only provides the arch_dma_prep_coherent symbol when an mmu is
enabled and not on the coldfire platform.  Fix the Kconfig symbol
selection up to match this.

Fixes: 69878ef47562 ("m68k: Implement arch_dma_prep_coherent()")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig

index 00f5c98a5e05d7efe4f24a6c116a53cf64af5848..678d3d2ff319edeff6e93390bee135cd346a430c 100644 (file)
@@ -4,7 +4,7 @@ config M68K
        default y
        select ARCH_32BIT_OFF_T
        select ARCH_HAS_DMA_MMAP_PGPROT if MMU && !COLDFIRE
-       select ARCH_HAS_DMA_PREP_COHERENT
+       select ARCH_HAS_DMA_PREP_COHERENT if HAS_DMA && MMU && !COLDFIRE
        select ARCH_HAS_SYNC_DMA_FOR_DEVICE if HAS_DMA
        select ARCH_MIGHT_HAVE_PC_PARPORT if ISA
        select ARCH_NO_COHERENT_DMA_MMAP if !MMU