From: Russell King Date: Thu, 19 Nov 2009 20:58:31 +0000 (+0000) Subject: ARM: dma-mapping: clean up coherent arch dma allocation X-Git-Tag: v2.6.33-rc1~384^2~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebd7a845fa4332da3ebcbe8cf1b09bb43413420e;p=pandora-kernel.git ARM: dma-mapping: clean up coherent arch dma allocation IXP23xx added support for dma_alloc_coherent() for DMA arches with an exception in dma_alloc_coherent(). This is a subset of what goes on in __dma_alloc(), and there is no reason why dma_alloc_writecombine() should not be given the same treatment (except, maybe, that IXP23xx doesn't use it.) We can better deal with this by moving the arch_is_coherent() test inside __dma_alloc() and killing the code duplication. Signed-off-by: Russell King Acked-by: Greg Ungerer --- Reading git-diff-tree failed