Skip to content

Commit

Permalink
[AVR32] Implement dma_mapping_error()
Browse files Browse the repository at this point in the history
dma_map_single() never fails, so dma_mapping_error() simply returns 0.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
  • Loading branch information
Haavard Skinnemoen committed Feb 9, 2007
1 parent 212868d commit 6eb484f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/asm-avr32/dma-mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eb484f

Please sign in to comment.