From: Russell King Date: Thu, 19 Nov 2009 16:31:39 +0000 (+0000) Subject: ARM: dma-mapping: factor dma_free_coherent() common code X-Git-Tag: v2.6.33-rc1~384^2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=695ae0af5a52df09dffcc2ce2d625d56ef36ce14;p=pandora-kernel.git ARM: dma-mapping: factor dma_free_coherent() common code We effectively have three implementations of dma_free_coherent() mixed up in the code; the incoherent MMU, coherent MMU and noMMU versions. The coherent MMU and noMMU versions are actually functionally identical. The incoherent MMU version is almost the same, but with the additional step of unmapping the secondary mapping. Separate out this additional step into __dma_free_remap() and simplify the resulting dma_free_coherent() code. Signed-off-by: Russell King Acked-by: Greg Ungerer --- Reading git-diff-tree failed