ARM: dma-mapping: fix nommu dma_alloc_coherent()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 19 Nov 2009 15:54:45 +0000 (15:54 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 24 Nov 2009 17:41:34 +0000 (17:41 +0000)
The nommu version of dma_alloc_coherent was using kmalloc/kfree to manage
the memory.  dma_alloc_coherent() is expected to work with a granularity
of a page, so this is wrong.  Fix it by using the helper functions now
provided.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Ungerer <gerg@uclinux.org>

No differences found