]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h
authorRolf Eike Beer <eike-kernel@sf-tec.de>
Fri, 29 Sep 2006 08:59:49 +0000 (01:59 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:10 +0000 (09:18 -0700)
commitf338a86f9c5a90d41d65c5a2ecca5783845ab7b0
treefc26eaff11fd8bc8f2d725e3519211998a558351
parent1de1dd707d4fd68a465333607bcf0983d1115a9b
[PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h

Now that the generic DMA code has a function to decide if a given DMA
mapping is valid use it.  This will catch cases where direction is not any
of the defined enum values but some random number outside the valid range.
The current implementation will only catch the defined but invalid case
DMA_NONE.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Acked-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/dma-mapping.h