9
0
Fork 0

ARM: use memalign in dma_alloc_coherent to assure alignment

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2010-04-09 13:59:56 +02:00
parent 6b17b6d6cc
commit 51b4009f3c
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ void *dma_alloc_coherent(size_t size)
{
void *mem;
mem = malloc(size);
mem = memalign(4096, size);
if (mem)
return mem + dma_coherent_offset;