[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().
[deliverable/linux.git] / include / asm-mips / floppy.h
index aa1ef8b352cc74baf2376c469e461a8fcfc13ddc..dcadd8562523d51c79d6429f1090da3a7238267b 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
This page took 0.02812 seconds and 5 git commands to generate.