summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-05-24 18:05:36 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-05-24 18:05:36 -0600
commit8b4825fd78ce244f16911131e3f60b2e3c6733c7 (patch)
tree9cece0863b9a13ea364a1602350f17d1197e708b /drivers
parent0084abeb68f8870c6758ca9d9c957a673cc5eb4e (diff)
CR TLSbo91804: Fix VPU driver call to dma_free_coherent
Call dma_free_coherent without PAGE_ALIGN for the size argument http://www.bitshrine.org/gpp/linux-2.6.19.2-mx-fix_vpu_dma_free_coherent.patch
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/vpu/mxc_vpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c
index cb2fcdd1fb52..2258ee9b62b0 100644
--- a/drivers/mxc/vpu/mxc_vpu.c
+++ b/drivers/mxc/vpu/mxc_vpu.c
@@ -80,7 +80,7 @@ static int vpu_free_buffers(void)
spin_lock_irqsave(&vpu_lock, flags);
list_for_each_entry_safe(rec, n, &head, list) {
mem = rec->mem;
- dma_free_coherent(0, mem.size,
+ dma_free_coherent(0, PAGE_ALIGN(mem.size),
(void *)mem.cpu_addr, mem.phy_addr);
pr_debug("[FREE] freed paddr=0x%08X\n", mem.phy_addr);
list_del(&rec->list);