From: Ralf Baechle Date: Thu, 11 Oct 2007 22:46:03 +0000 (+0100) Subject: [MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync(). X-Git-Tag: v2.6.24-rc1~1455^2~62 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ca16d269a1a4b96d98968b48f137977bcab1522;p=linux-2.6 [MIPS] floppy: Rewrite fd_cacheflush() to use dma_cache_sync(). Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/floppy.h b/include/asm-mips/floppy.h index aa1ef8b352..dcadd85625 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 + 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