From: Sakari Ailus Date: Mon, 7 May 2018 12:41:58 +0000 (-0400) Subject: media: omap3isp: Don't use GFP_DMA X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e280edff3308602922d623e15bae473152869eba;p=openwrt%2Fstaging%2Fblogic.git media: omap3isp: Don't use GFP_DMA 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 Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/omap3isp/ispstat.c b/drivers/media/platform/omap3isp/ispstat.c index c70f118513f3..47353fee26c3 100644 --- a/drivers/media/platform/omap3isp/ispstat.c +++ b/drivers/media/platform/omap3isp/ispstat.c @@ -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;