summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/pci-dma.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-24 01:30:08 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-24 01:30:08 +0000
commit4c86076eb07eb647b1080355e18dc9d4c49bf7e1 (patch)
tree1f9f7c9ca846e066a29c86c4ab40075342632cd1 /arch/mips/kernel/pci-dma.c
parent85296f5e0eea548ce591b07bbf1994eb787ce7dc (diff)
dma_cache_inv -> dma_cache_wback_inv.
Diffstat (limited to 'arch/mips/kernel/pci-dma.c')
-rw-r--r--arch/mips/kernel/pci-dma.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/pci-dma.c b/arch/mips/kernel/pci-dma.c
index 3788ef997..6efed2e1b 100644
--- a/arch/mips/kernel/pci-dma.c
+++ b/arch/mips/kernel/pci-dma.c
@@ -3,7 +3,8 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (C) 2000 Ani Joshi <ajoshi@unixbox.com>
+ * Copyright (C) 2000 Ani Joshi <ajoshi@unixbox.com>
+ * Copyright (C) 2000 Ralf Baechle <ralf@gnu.org>
* swiped from i386, and cloned for MIPS by Geert, polished by Ralf.
*/
#include <linux/types.h>
@@ -25,7 +26,7 @@ void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size,
if (ret != NULL) {
memset(ret, 0, size);
- dma_cache_inv((unsigned long) ret, size);
+ dma_cache_wback_inv((unsigned long) ret, size);
*dma_handle = virt_to_bus(ret);
ret = KSEG1ADDR(ret);
}