[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().
authorRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:03 +0000 (23:46 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:03 +0000 (23:46 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/floppy.h

index aa1ef8b..dcadd85 100644 (file)
 #ifndef _ASM_FLOPPY_H
 #define _ASM_FLOPPY_H
 
+#include <linux/dma-mapping.h>
+
 static inline void fd_cacheflush(char * addr, long size)
 {
-       dma_cache_wback_inv((unsigned long)addr,size);
+       dma_cache_sync(NULL, addr, size, DMA_BIDIRECTIONAL);
 }
 
 #define MAX_BUFFER_SECTORS 24