diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2007-02-23 19:58:48 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-27 00:06:06 +0100 |
commit | 9b43fb6bc118226206c17be5f46297fd76b4abbb (patch) | |
tree | fc2e5af731fdd88d80be9387cc1c04fcbd6a05c0 | |
parent | [MIPS] Remove unreferenced _IOC_SLMASK macro in ioctl.h. (diff) | |
download | linux-9b43fb6bc118226206c17be5f46297fd76b4abbb.tar.xz linux-9b43fb6bc118226206c17be5f46297fd76b4abbb.zip |
[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>
-rw-r--r-- | arch/mips/mm/dma-default.c | 6 |
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, { BUG_ON(direction == DMA_NONE); - if (cpu_is_noncoherent_r10000(dev)) { + if (!plat_device_is_coherent(dev)) { unsigned long addr; - addr = plat_dma_addr_to_phys(dma_handle); + addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle); __dma_sync(addr, size, direction); } } @@ -276,7 +276,7 @@ void dma_sync_single_range_for_device(struct device *dev, dma_addr_t dma_handle, { BUG_ON(direction == DMA_NONE); - if (cpu_is_noncoherent_r10000(dev)) { + if (!plat_device_is_coherent(dev)) { unsigned long addr; addr = PAGE_OFFSET + plat_dma_addr_to_phys(dma_handle); |