media: sti/bdisp: don't pass GFP_DMA32 to dma_alloc_attrs
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 15:17:06 +0000 (11:17 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 10:31:46 +0000 (05:31 -0500)
The DMA API does its own zone decisions based on the coherent_dma_mask.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/sti/bdisp/bdisp-hw.c

index 26d9fa7..4372abb 100644 (file)
@@ -510,7 +510,7 @@ int bdisp_hw_alloc_filters(struct device *dev)
 
        /* Allocate all the filters within a single memory page */
        size = (BDISP_HF_NB * NB_H_FILTER) + (BDISP_VF_NB * NB_V_FILTER);
-       base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA,
+       base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL,
                               DMA_ATTR_WRITE_COMBINE);
        if (!base)
                return -ENOMEM;