]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/mips/include/asm/dma-coherence.h
MIPS: Support per-device DMA coherence
[linux.git] / arch / mips / include / asm / dma-coherence.h
index 4fbce79fb57faba49a3d96eeb9eef3d5e0f7a7e5..72d0eab02afcbbfc33bd6ee653389a30887c1f3a 100644 (file)
@@ -15,7 +15,9 @@ enum coherent_io_user_state {
        IO_COHERENCE_DISABLED,
 };
 
-#ifdef CONFIG_DMA_MAYBE_COHERENT
+#if defined(CONFIG_DMA_PERDEV_COHERENT)
+/* Don't provide (hw_)coherentio to avoid misuse */
+#elif defined(CONFIG_DMA_MAYBE_COHERENT)
 extern enum coherent_io_user_state coherentio;
 extern int hw_coherentio;
 #else