media: st-hva: don't use GFP_DMA
Set the DMA_MASK and stop using the GFP_DMA flag Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
2732bb765f
commit
72c7caa486
@ -22,7 +22,7 @@ int hva_mem_alloc(struct hva_ctx *ctx, u32 size, const char *name,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA,
|
base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL,
|
||||||
DMA_ATTR_WRITE_COMBINE);
|
DMA_ATTR_WRITE_COMBINE);
|
||||||
if (!base) {
|
if (!base) {
|
||||||
dev_err(dev, "%s %s : dma_alloc_attrs failed for %s (size=%d)\n",
|
dev_err(dev, "%s %s : dma_alloc_attrs failed for %s (size=%d)\n",
|
||||||
|
@ -1355,6 +1355,10 @@ static int hva_probe(struct platform_device *pdev)
|
|||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(32));
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
hva->dev = dev;
|
hva->dev = dev;
|
||||||
hva->pdev = pdev;
|
hva->pdev = pdev;
|
||||||
platform_set_drvdata(pdev, hva);
|
platform_set_drvdata(pdev, hva);
|
||||||
|
Loading…
Reference in New Issue
Block a user