diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-10-12 00:46:03 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-10-12 00:46:03 +0200 |
commit | 7ca16d269a1a4b96d98968b48f137977bcab1522 (patch) | |
tree | 4a7956a0bad2e9f156234f0de96a77edbb8e3774 /include/asm-mips | |
parent | [MIPS] PCI: Always enable CONFIG_PCI_DOMAINS (diff) | |
download | linux-7ca16d269a1a4b96d98968b48f137977bcab1522.tar.xz linux-7ca16d269a1a4b96d98968b48f137977bcab1522.zip |
[MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/floppy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-mips/floppy.h b/include/asm-mips/floppy.h index aa1ef8b352cc..dcadd8562523 100644 --- a/include/asm-mips/floppy.h +++ b/include/asm-mips/floppy.h @@ -10,9 +10,11 @@ #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 |