diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-06-18 11:38:31 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-19 03:25:42 -0400 |
commit | 4026099a3118a1e038c48f3f85203a674938025b (patch) | |
tree | 105cedc27f97be8542afb78efc308e99c743ef3b /arch/s390 | |
parent | 73e5a848426fae8e7f1f685389aa61d7a98e7c36 (diff) |
s390/dma: support debug_dma_mapping_error
Without this patch drivers will get blamed (CONFIG_DMA_API_DEBUG=y)
for not calling dma_mapping_error (even if they do).
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/dma-mapping.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/dma-mapping.h b/arch/s390/include/asm/dma-mapping.h index 9f15a36f6fd9..2f8c1abeb086 100644 --- a/arch/s390/include/asm/dma-mapping.h +++ b/arch/s390/include/asm/dma-mapping.h | |||
@@ -50,6 +50,7 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) | |||
50 | { | 50 | { |
51 | struct dma_map_ops *dma_ops = get_dma_ops(dev); | 51 | struct dma_map_ops *dma_ops = get_dma_ops(dev); |
52 | 52 | ||
53 | debug_dma_mapping_error(dev, dma_addr); | ||
53 | if (dma_ops->mapping_error) | 54 | if (dma_ops->mapping_error) |
54 | return dma_ops->mapping_error(dev, dma_addr); | 55 | return dma_ops->mapping_error(dev, dma_addr); |
55 | return (dma_addr == DMA_ERROR_CODE); | 56 | return (dma_addr == DMA_ERROR_CODE); |