summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2008-02-08 13:13:27 +0000
committerRalf Baechle <ralf@linux-mips.org>2008-02-19 17:01:30 +0000
commiteaf7943cc53d9688aa10267a226165356e956ec5 (patch)
tree67a3945b4cada1d3f48c93a3f39c328babe34ee5 /include/asm-mips
parent0e568536d94256819f17662c26c82a42e44a7a7c (diff)
downloadop-kernel-dev-eaf7943cc53d9688aa10267a226165356e956ec5.zip
op-kernel-dev-eaf7943cc53d9688aa10267a226165356e956ec5.tar.gz
[MIPS] IP27: Add missing ~ in DMA code.
Harmless since this function is not being called on I/O coherent systems such as IP27. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/mach-ip27/dma-coherence.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/mach-ip27/dma-coherence.h b/include/asm-mips/mach-ip27/dma-coherence.h
index 3fdbbf6..ed7e622 100644
--- a/include/asm-mips/mach-ip27/dma-coherence.h
+++ b/include/asm-mips/mach-ip27/dma-coherence.h
@@ -35,7 +35,7 @@ static dma_addr_t plat_map_dma_mem_page(struct device *dev, struct page *page)
static unsigned long plat_dma_addr_to_phys(dma_addr_t dma_addr)
{
- return dma_addr & (0xffUL << 56);
+ return dma_addr & ~(0xffUL << 56);
}
static inline void plat_unmap_dma_mem(dma_addr_t dma_addr)
OpenPOWER on IntegriCloud