Skip to content

Commit

Permalink
[media] V4L2: omap_vout: Remove GFP_DMA allocation as ZONE_DMA is not…
Browse files Browse the repository at this point in the history
… configured on OMAP

Remove GFP_DMA from the __get_free_pages() call from omap_vout as ZONE_DMA
is not configured on OMAP. Earlier the page allocator used to return a page
from ZONE_NORMAL even when GFP_DMA is passed and CONFIG_ZONE_DMA is disabled.
As a result of commit a197b59, page allocator
returns null in such a scenario with a warning emitted to kernel log.

Signed-off-by: Amber Jain <amber@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Amber Jain authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 949d926 commit e831599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/omap/omap_vout.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr)

size = PAGE_ALIGN(buf_size);
order = get_order(size);
virt_addr = __get_free_pages(GFP_KERNEL | GFP_DMA, order);
virt_addr = __get_free_pages(GFP_KERNEL, order);
addr = virt_addr;

if (virt_addr) {
Expand Down

0 comments on commit e831599

Please sign in to comment.