From: Rolf Eike Beer Date: Fri, 29 Sep 2006 08:59:49 +0000 (-0700) Subject: [PATCH] Use valid_dma_direction() in include/asm-i386/dma-mapping.h X-Git-Tag: v2.6.19-rc1~784 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd1c6a48ac16b360746f9f111895931d332c35dd;p=pandora-kernel.git [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 Acked-by: Muli Ben-Yehuda Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed