projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
212868d
)
[AVR32] Implement dma_mapping_error()
author
Haavard Skinnemoen
<hskinnemoen@atmel.com>
Thu, 1 Feb 2007 15:26:03 +0000
(16:26 +0100)
committer
Haavard Skinnemoen
<hskinnemoen@atmel.com>
Fri, 9 Feb 2007 14:01:57 +0000
(15:01 +0100)
dma_map_single() never fails, so dma_mapping_error() simply returns 0.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
include/asm-avr32/dma-mapping.h
patch
|
blob
|
history
diff --git
a/include/asm-avr32/dma-mapping.h
b/include/asm-avr32/dma-mapping.h
index 5c01e27f0b41d61ac58f3c49e9f2a38aabff1b4c..115813e48fe0c11005181dee7bda548ebad73bb6 100644
(file)
--- a/
include/asm-avr32/dma-mapping.h
+++ b/
include/asm-avr32/dma-mapping.h
@@
-32,6
+32,14
@@
static inline int dma_set_mask(struct device *dev, u64 dma_mask)
return 0;
}
+/*
+ * dma_map_single can't fail as it is implemented now.
+ */
+static inline int dma_mapping_error(dma_addr_t addr)
+{
+ return 0;
+}
+
/**
* dma_alloc_coherent - allocate consistent memory for DMA
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices