aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mm
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2007-02-23 13:58:48 -0500
committerRalf Baechle <ralf@linux-mips.org>2007-02-26 18:06:06 -0500
commit9b43fb6bc118226206c17be5f46297fd76b4abbb (patch)
treefc2e5af731fdd88d80be9387cc1c04fcbd6a05c0 /arch/mips/mm
parent40139bd459d3fe90ee560f46a2cb00f16b873170 (diff)
[MIPS] Fix dma_sync_*_for_device() functions
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm')
-rw-r--r--arch/mips/mm/dma-default.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c
index 4a32e939698f..a72093ad105f 100644
--- a/arch/mips/mm/dma-default.c
+++ b/arch/mips/mm/dma-default.c
@@ -246,10 +246,10 @@ void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle,
246{ 246{
247 BUG_ON(direction == DMA_NONE); 247 BUG_ON(direction == DMA_NONE);
248 248
249 if (cpu_is_noncoherent_r10000(dev)) { 249 if (!plat_device_is_coherent(dev)) {
250 unsigned long addr; 250 unsigned long addr;
251 251
252 addr = plat_dma_addr_to_phys(dma_handle); 252 addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle);
253 __dma_sync(addr, size, direction); 253 __dma_sync(addr, size, direction);
254 } 254 }
255} 255}
@@ -276,7 +276,7 @@ void dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle,
276{ 276{
277 BUG_ON(direction == DMA_NONE); 277 BUG_ON(direction == DMA_NONE);
278 278
279 if (cpu_is_noncoherent_r10000(dev)) { 279 if (!plat_device_is_coherent(dev)) {
280 unsigned long addr; 280 unsigned long addr;
281 281
282 addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle); 282 addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle);