aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAmber Jain <amber@ti.com>2011-05-31 10:45:36 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:05 -0400
commite213e438ce2a7451572f1c00ed87893ca25d3ea9 (patch)
treeb021d1043adbd150f6c5d3be66cf3ed17be20a05 /drivers/media
parente831599cb8bed4e6aa2a336ec2e3aaf74dee6353 (diff)
[media] OMAP2: V4L2: Remove GFP_DMA allocation as ZONE_DMA is not configured on OMAP
Remove GFP_DMA from the __get_free_pages() call from omap24xxcam 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 a197b59ae6e8bee56fcef37ea2482dc08414e2ac, page allocator returns null in such a scenario with a warning emitted to kernel log. Signed-off-by: Amber Jain <amber@ti.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/omap24xxcam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/omap24xxcam.c b/drivers/media/video/omap24xxcam.c
index ba3a8af76a8c..2a598576357f 100644
--- a/drivers/media/video/omap24xxcam.c
+++ b/drivers/media/video/omap24xxcam.c
@@ -308,11 +308,11 @@ static int omap24xxcam_vbq_alloc_mmap_buffer(struct videobuf_buffer *vb)
308 order--; 308 order--;
309 309
310 /* try to allocate as many contiguous pages as possible */ 310 /* try to allocate as many contiguous pages as possible */
311 page = alloc_pages(GFP_KERNEL | GFP_DMA, order); 311 page = alloc_pages(GFP_KERNEL, order);
312 /* if allocation fails, try to allocate smaller amount */ 312 /* if allocation fails, try to allocate smaller amount */
313 while (page == NULL) { 313 while (page == NULL) {
314 order--; 314 order--;
315 page = alloc_pages(GFP_KERNEL | GFP_DMA, order); 315 page = alloc_pages(GFP_KERNEL, order);
316 if (page == NULL && !order) { 316 if (page == NULL && !order) {
317 err = -ENOMEM; 317 err = -ENOMEM;
318 goto out; 318 goto out;