Commit 2732bb76 authored by Fabien Dessenne's avatar Fabien Dessenne Committed by Mauro Carvalho Chehab

media: bdisp: don't use GFP_DMA

Set the DMA_MASK and stop using the GFP_DMA flag
Signed-off-by: default avatarFabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: default avatarHans Verkuil <hansverk@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 6aecad62
...@@ -455,7 +455,7 @@ int bdisp_hw_alloc_nodes(struct bdisp_ctx *ctx) ...@@ -455,7 +455,7 @@ int bdisp_hw_alloc_nodes(struct bdisp_ctx *ctx)
/* Allocate all the nodes within a single memory page */ /* Allocate all the nodes within a single memory page */
base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr, base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr,
GFP_KERNEL | GFP_DMA, DMA_ATTR_WRITE_COMBINE); GFP_KERNEL, DMA_ATTR_WRITE_COMBINE);
if (!base) { if (!base) {
dev_err(dev, "%s no mem\n", __func__); dev_err(dev, "%s no mem\n", __func__);
return -ENOMEM; return -ENOMEM;
......
...@@ -1297,6 +1297,10 @@ static int bdisp_probe(struct platform_device *pdev) ...@@ -1297,6 +1297,10 @@ static int bdisp_probe(struct platform_device *pdev)
if (!bdisp) if (!bdisp)
return -ENOMEM; return -ENOMEM;
ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
if (ret)
return ret;
bdisp->pdev = pdev; bdisp->pdev = pdev;
bdisp->dev = dev; bdisp->dev = dev;
platform_set_drvdata(pdev, bdisp); platform_set_drvdata(pdev, bdisp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment