sparc: dma-mapping: support debug_dma_mapping_error
authorShuah Khan <shuahkhan@gmail.com>
Fri, 26 Oct 2012 00:31:42 +0000 (18:31 -0600)
committerJoerg Roedel <joro@8bytes.org>
Sat, 17 Nov 2012 12:20:38 +0000 (13:20 +0100)
commit5d346d103355a0ea1ccc40b7ac0659326cb74077
treed6c2e800fe7b4870db2fcf367f8c9d2c3c8944fd
parentbfe0fb0f1a570ae72680d6d48655c98d1f4733f5
sparc: dma-mapping: support debug_dma_mapping_error

Add support for debug_dma_mapping_error() call to avoid warning from
debug_dma_unmap() interface when it checks for mapping error checked
status. Without this patch, device driver failed to check map error
warning is generated.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
arch/sparc/include/asm/dma-mapping.h