]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dma-mapping: simplify page_to_dma() and __pfn_to_bus()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 31 Oct 2009 15:58:30 +0000 (15:58 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Nov 2009 12:53:26 +0000 (12:53 +0000)
commit6b52a3a6fc368d498b0f6f788ccc98c3c8fbdeed
tree03285de0d6347b409f9691d32a36b61d7c1eac63
parenta4478cc1fdd460366f3daf2d7fdc30938efa98df
ARM: dma-mapping: simplify page_to_dma() and __pfn_to_bus()

The non-highmem() and the __pfn_to_bus() based page_to_dma() both
compile to the same code, so its pointless having these two different
approaches.  Use the __pfn_to_bus() based version.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Tested-By: Jamie Iles <jamie@jamieiles.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/dma-mapping.h
arch/arm/include/asm/memory.h