From: Haavard Skinnemoen Date: Thu, 1 Feb 2007 15:26:03 +0000 (+0100) Subject: [AVR32] Implement dma_mapping_error() X-Git-Tag: v4.13~40237^2~63^2~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6eb484fe92e2f67f888dc87e97bfd938c0f7404e;p=mirror_ubuntu-bionic-kernel.git [AVR32] Implement dma_mapping_error() dma_map_single() never fails, so dma_mapping_error() simply returns 0. Signed-off-by: Haavard Skinnemoen --- diff --git a/include/asm-avr32/dma-mapping.h b/include/asm-avr32/dma-mapping.h index 5c01e27f0b41..115813e48fe0 100644 --- 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