ARM: dma-mapping: check DMA mask against available memory
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 25 Nov 2013 21:52:25 +0000 (21:52 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 30 Nov 2013 14:45:29 +0000 (14:45 +0000)
Some buses have negative offsets, which causes the DMA mask checks to
falsely fail.  Fix this by using the actual amount of memory fitted in
the system.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/dma-mapping.c

Simple merge