media: omap3isp: Don't use GFP_DMA
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 7 May 2018 12:41:58 +0000 (08:41 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 9 May 2018 20:38:38 +0000 (16:38 -0400)
The isp stat driver allocates memory for DMA and uses GFP_DMA flag for
dev_alloc_coherent. The flag is no longer needed as the DMA mask is used
for the purpose. Remove it.

Reported-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/omap3isp/ispstat.c

index c70f118513f30107cb2d4a896bbff8d5e290ec6f..47353fee26c3297234502d6d9ce197ff5098eb0c 100644 (file)
@@ -371,7 +371,7 @@ static int isp_stat_bufs_alloc_one(struct device *dev,
        int ret;
 
        buf->virt_addr = dma_alloc_coherent(dev, size, &buf->dma_addr,
-                                           GFP_KERNEL | GFP_DMA);
+                                           GFP_KERNEL);
        if (!buf->virt_addr)
                return -ENOMEM;