mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
[AVR32] Implement dma_mapping_error()
dma_map_single() never fails, so dma_mapping_error() simply returns 0. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
This commit is contained in:
parent
212868d387
commit
6eb484fe92
1 changed files with 8 additions and 0 deletions
|
@ -32,6 +32,14 @@ static inline int dma_set_mask(struct device *dev, u64 dma_mask)
|
||||||
return 0;
|
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
|
* dma_alloc_coherent - allocate consistent memory for DMA
|
||||||
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
|
* @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
|
||||||
|
|
Loading…
Reference in a new issue